FV3 Bundle
gsw_enthalpy_sso_0.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_enthalpy_sso_0 (p)
3 !==========================================================================
4 ! This function calculates enthalpy at the Standard Ocean Salinity, SSO,
5 ! and at a Conservative Temperature of zero degrees C, as a function of
6 ! pressure, p, in dbar, using a streamlined version of the
7 ! computationally-efficient expression for specific volume, that is, a
8 ! streamlined version of the code "gsw_enthalpy(SA,CT,p)".
9 !==========================================================================
10 
12 
14 
15 use gsw_mod_kinds
16 
17 implicit none
18 
19 real (r8), intent(in) :: p
20 
21 real (r8) :: gsw_enthalpy_sso_0
22 
23 real (r8) :: dynamic_enthalpy_sso_0_p, z
24 
25 z = p*1e-4_r8
26 
27 dynamic_enthalpy_sso_0_p = &
28  z*( 9.726613854843870e-4_r8 + z*(-2.252956605630465e-5_r8 &
29  + z*( 2.376909655387404e-6_r8 + z*(-1.664294869986011e-7_r8 &
30  + z*(-5.988108894465758e-9_r8 + z*(h006 + h007*z))))))
31 
32 gsw_enthalpy_sso_0 = dynamic_enthalpy_sso_0_p*db2pa*1e4_r8
33 
34 return
35 end function
36 
37 !--------------------------------------------------------------------------
elemental real(r8) function gsw_enthalpy_sso_0(p)