FV3 Bundle
gsw_pot_enthalpy_ice_freezing.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_pot_enthalpy_ice_freezing (sa, p)
3 !==========================================================================
4 !
5 ! Calculates the potential enthalpy of ice at which seawater freezes.
6 !
7 ! SA = Absolute Salinity [ g/kg ]
8 ! p = sea pressure [ dbar ]
9 ! ( i.e. absolute pressure - 10.1325 dbar )
10 !
11 ! pot_enthalpy_ice_freezing = potential enthalpy of ice at freezing
12 ! of seawater [ deg C ]
13 !--------------------------------------------------------------------------
14 
17 
18 use gsw_mod_kinds
19 
20 implicit none
21 
22 real (r8), intent(in) :: sa, p
23 
25 
26 real (r8) :: pt0_ice, t_freezing
27 
28 t_freezing = gsw_t_freezing_exact(sa,p,0.0_r8)
29 
30 pt0_ice = gsw_pt0_from_t_ice(t_freezing,p)
31 
33 
34 return
35 end function
36 
37 !--------------------------------------------------------------------------
elemental real(r8) function gsw_pot_enthalpy_ice_freezing(sa, p)