FV3 Bundle
gsw_latentheat_melting.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_latentheat_melting (sa, p)
3 !==========================================================================
4 !
5 ! Calculates latent heat, or enthalpy, of melting.
6 !
7 ! sa : Absolute Salinity [g/kg]
8 ! p : sea pressure [dbar]
9 !
10 ! gsw_latentheat_melting : latent heat of melting [kg/m^3]
11 !--------------------------------------------------------------------------
12 
16 
18 
19 use gsw_mod_kinds
20 
21 implicit none
22 
23 real (r8), intent(in) :: sa, p
24 
25 real (r8) :: gsw_latentheat_melting
26 
27 real (r8) :: tf
28 
29 tf = gsw_t_freezing_exact(sa,p,0.0_r8);
30 
33  - gsw_enthalpy_ice(tf,p);
34 
35 return
36 end function
37 
38 !--------------------------------------------------------------------------
elemental real(r8) function gsw_latentheat_melting(sa, p)