3 p, pot_enthalpy_ice_freezing_sa, pot_enthalpy_ice_freezing_p)
33 real (r8),
intent(in) :: sa, p
34 real (r8),
intent(out),
optional :: pot_enthalpy_ice_freezing_sa
35 real (r8),
intent(out),
optional :: pot_enthalpy_ice_freezing_p
37 real (r8) :: cp_ihf, pt_icef, ratio_temp, tf, tf_p, tf_sa
39 real (r8),
parameter :: saturation_fraction = 0.0_r8
47 if (
present(pot_enthalpy_ice_freezing_sa) .and.
present(pot_enthalpy_ice_freezing_p))
then 49 else if (
present(pot_enthalpy_ice_freezing_sa))
then 52 else if (
present(pot_enthalpy_ice_freezing_p))
then 57 if (
present(pot_enthalpy_ice_freezing_sa)) &
58 pot_enthalpy_ice_freezing_sa = ratio_temp*cp_ihf*tf_sa
60 if (
present(pot_enthalpy_ice_freezing_p)) &
61 pot_enthalpy_ice_freezing_p = ratio_temp*cp_ihf*tf_p &
real(r8), parameter gsw_t0
elemental subroutine gsw_pot_enthalpy_ice_freezing_first_derivatives(sa, p, pot_enthalpy_ice_freezing_sa, pot_enthalpy_ice_freezing_p)