25 real (r8),
intent(in) :: rho, ct, p
31 real (r8) :: sa, v_lab, v_0, v_50, v_sa, sa_old, delta_v, sa_mean
33 character (*),
parameter :: func_name =
"gsw_sa_from_rho" 39 sa = 50.0_r8*(v_lab - v_0)/(v_50 - v_0)
41 if (sa.lt.0_r8.or.sa.gt.50_r8)
then 46 v_sa = (v_50 - v_0)/50.0_r8
51 sa = sa_old - delta_v/v_sa
52 sa_mean = 0.5_r8*(sa + sa_old)
54 sa = sa_old - delta_v/v_sa
55 if (sa.lt.0_r8.or.sa.gt.50_r8)
then
elemental real(r8) function gsw_sa_from_rho(rho, ct, p)
real(r8), parameter, public gsw_error_limit
elemental real(r8) function, public gsw_error_code(err_num, func_name, error_code)