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
13
use
gsw_mod_toolbox
,
only
:
gsw_enthalpy_ice
,
gsw_t_freezing_exact
14
use
gsw_mod_toolbox
,
only
:
gsw_chem_potential_water_t_exact
15
use
gsw_mod_toolbox
,
only
:
gsw_t_deriv_chem_potential_water_t_exact
16
17
use
gsw_mod_teos10_constants
,
only
:
gsw_sfac
,
gsw_t0
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
31
gsw_latentheat_melting
= 1000.0_r8*(
gsw_chem_potential_water_t_exact
(sa,tf,p) &
32
- (
gsw_t0
+ tf)*
gsw_t_deriv_chem_potential_water_t_exact
(sa,tf,p)) &
33
-
gsw_enthalpy_ice
(tf,p);
34
35
return
36
end function
37
38
!--------------------------------------------------------------------------
gsw_mod_toolbox::gsw_t_freezing_exact
Definition:
gsw_mod_toolbox.f90:1450
gsw_mod_toolbox
Definition:
gsw_mod_toolbox.f90:1
gsw_latentheat_melting
elemental real(r8) function gsw_latentheat_melting(sa, p)
Definition:
gsw_latentheat_melting.f90:3
gsw_mod_teos10_constants
Definition:
gsw_mod_teos10_constants.f90:2
gsw_mod_toolbox::gsw_enthalpy_ice
Definition:
gsw_mod_toolbox.f90:476
gsw_mod_kinds
Definition:
gsw_mod_kinds.f90:2
gsw_mod_teos10_constants::gsw_t0
real(r8), parameter gsw_t0
Definition:
gsw_mod_teos10_constants.f90:28
gsw_mod_toolbox::gsw_chem_potential_water_t_exact
Definition:
gsw_mod_toolbox.f90:287
gsw_mod_toolbox::gsw_latentheat_melting
Definition:
gsw_mod_toolbox.f90:762
gsw_mod_teos10_constants::gsw_sfac
real(r8), parameter gsw_sfac
Definition:
gsw_mod_teos10_constants.f90:45
gsw_mod_toolbox::gsw_t_deriv_chem_potential_water_t_exact
Definition:
gsw_mod_toolbox.f90:1435
src
fv3-bundle
gsw
toolbox
gsw_latentheat_melting.f90
Generated on Tue Nov 6 2018 11:38:37 for FV3 Bundle by
1.8.14