24 real (r8),
intent(in) :: sa, entropy
28 integer :: number_of_iterations
29 real (r8) :: c, dentropy, dentropy_dt, ent_sa, part1, part2, pt, ptm
34 part2 = 1.0_r8 - 0.05_r8*part1
36 c = (entropy - ent_sa)*(part2/
gsw_cp0)
37 pt =
gsw_t0*(exp(c) - 1.0_r8)
40 do number_of_iterations = 1, 2
43 pt = pt_old - dentropy/dentropy_dt
44 ptm = 0.5_r8*(pt + pt_old)
46 pt = pt_old - dentropy/dentropy_dt
real(r8), parameter gsw_sso
elemental real(r8) function gsw_pt_from_entropy(sa, entropy)
real(r8), parameter gsw_cp0
real(r8), parameter gsw_t0