FV3 Bundle
gsw_enthalpy_ct_exact.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_enthalpy_ct_exact (sa, ct, p)
3 !==========================================================================
4 !
5 ! Calculates specific enthalpy of seawater from Absolute Salinity and
6 ! Conservative Temperature and pressure.
7 !
8 ! Note that this function uses the full Gibbs function.
9 !
10 ! SA = Absolute Salinity [ g/kg ]
11 ! CT = Conservative Temperature (ITS-90) [ deg C ]
12 ! p = sea pressure [ dbar ]
13 ! ( i.e. absolute pressure - 10.1325 dbar )
14 !
15 ! enthalpy_CT_exact = specific enthalpy [ J/kg ]
16 !--------------------------------------------------------------------------
17 
19 
20 use gsw_mod_kinds
21 
22 implicit none
23 
24 real (r8), intent(in) :: sa, ct, p
25 
26 real (r8) :: gsw_enthalpy_ct_exact
27 
28 real (r8) :: t
29 
30 t = gsw_t_from_ct(sa,ct,p)
32 
33 return
34 end function
35 
36 !--------------------------------------------------------------------------
elemental real(r8) function gsw_enthalpy_ct_exact(sa, ct, p)