54 real (r8),
intent(in) :: sa, ct, p, sa_seaice, t_seaice
58 real (r8) :: ctf, delsa, h, h_brine, h_ih, sa_brine, ct_brine
59 real (r8) :: tf_sa_seaice, h_hat_sa, h_hat_ct
61 real (r8),
parameter :: saturation_fraction = 0.0_r8
63 character (*),
parameter :: func_name =
"gsw_melting_seaice_sa_ct_ratio_poly" 65 if (sa_seaice .lt. 0.0_r8 .or. sa_seaice .gt. 15.0_r8)
then 78 if (t_seaice .gt. tf_sa_seaice)
then 100 delsa = sa - sa_seaice
103 (h - h_ih - delsa*h_hat_sa - sa_seaice*(h_brine - h_ih)/sa_brine)
real(r8), parameter, public gsw_error_limit
elemental real(r8) function gsw_melting_seaice_sa_ct_ratio_poly(sa, ct, p, sa_seaice, t_seaice)
elemental real(r8) function, public gsw_error_code(err_num, func_name, error_code)