FV3 Bundle
gsw_thermobaric.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_thermobaric (sa, ct, p)
3 !==========================================================================
4 !
5 ! Calculates the thermobaric coefficient of seawater with respect to
6 ! Conservative Temperature. This routine is based on the
7 ! computationally-efficient expression for specific volume in terms of
8 ! SA, CT and p (Roquet et al., 2014).
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 ! thermobaric = thermobaric coefficient with [ 1/(K Pa) ]
16 ! respect to Conservative Temperature.
17 ! Note. The pressure derivative is taken with respect to
18 ! pressure in Pa not dbar.
19 !--------------------------------------------------------------------------
20 
23 
24 use gsw_mod_kinds
25 
26 implicit none
27 
28 real (r8), intent(in) :: sa, ct, p
29 
30 real (r8) :: gsw_thermobaric
31 
32 real (r8) :: v_ct, v_ct_p, v_sa, v_sa_p
33 
34 call gsw_specvol_first_derivatives(sa,ct,p,v_sa=v_sa,v_ct=v_ct)
35 
36 call gsw_specvol_second_derivatives(sa,ct,p,v_sa_p=v_sa_p,v_ct_p=v_ct_p)
37 
38 gsw_thermobaric = gsw_rho(sa,ct,p)*(v_ct_p - (v_ct/v_sa)*v_sa_p)
39 
40 return
41 end function
42 
43 !--------------------------------------------------------------------------
elemental real(r8) function gsw_thermobaric(sa, ct, p)