23 real (r8),
intent(in) :: sa, t, p, p_ref
28 real (r8) :: s1, pt, pt_old, dentropy, dentropy_dt
29 real (r8) :: true_entropy_part, ptm
31 integer,
parameter :: n0=0, n2=2
35 pt = t + (p-p_ref)*( 8.65483913395442e-6_r8 - &
36 s1 * 1.41636299744881e-6_r8 - &
37 (p+p_ref)* 7.38286467135737e-9_r8 + &
38 t *(-8.38241357039698e-6_r8 + &
39 s1 * 2.83933368585534e-8_r8 + &
40 t * 1.77803965218656e-8_r8 + &
41 (p+p_ref)* 1.71155619208233e-10_r8))
50 pt = pt_old - dentropy/dentropy_dt
51 ptm = 0.5_r8*(pt + pt_old)
52 dentropy_dt = -
gsw_gibbs(n0,n2,n0,sa,ptm,p_ref)
53 pt = pt_old - dentropy/dentropy_dt
real(r8), parameter gsw_sso
elemental real(r8) function gsw_pt_from_t(sa, t, p, p_ref)
real(r8), parameter gsw_cp0
real(r8), parameter gsw_t0
real(r8), parameter gsw_ups