3 w_seaice, sa_seaice, t_seaice, sa_final, ct_final)
60 real (r8),
intent(in) :: sa, ct, p, w_seaice, sa_seaice, t_seaice
61 real (r8),
intent(out) :: sa_final, ct_final
63 real (r8) :: ctf, h, h_brine, h_final, h_ih, sa_brine, tf_sa_seaice
65 real (r8),
parameter :: saturation_fraction = 0.0_r8
67 character (*),
parameter :: func_name =
"gsw_melting_seaice_into_seawater" 78 if (t_seaice .gt. tf_sa_seaice)
then 99 h_final = h - w_seaice*(h - h_ih - (h_brine - h_ih)*sa_seaice/sa_brine)
101 sa_final = sa - w_seaice*(sa - sa_seaice)
elemental subroutine gsw_melting_seaice_into_seawater(sa, ct, p, w_seaice, sa_seaice, t_seaice, sa_final, ct_final)
real(r8), parameter, public gsw_error_limit
elemental real(r8) function, public gsw_error_code(err_num, func_name, error_code)