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
21
use
gsw_mod_toolbox
,
only
:
gsw_rho
,
gsw_specvol_first_derivatives
22
use
gsw_mod_toolbox
,
only
:
gsw_specvol_second_derivatives
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
!--------------------------------------------------------------------------
gsw_mod_toolbox::gsw_thermobaric
Definition:
gsw_mod_toolbox.f90:1496
gsw_mod_toolbox::gsw_rho
Definition:
gsw_mod_toolbox.f90:1052
gsw_mod_toolbox
Definition:
gsw_mod_toolbox.f90:1
gsw_mod_toolbox::gsw_specvol_second_derivatives
Definition:
gsw_mod_toolbox.f90:1361
gsw_mod_kinds
Definition:
gsw_mod_kinds.f90:2
gsw_mod_toolbox::gsw_specvol_first_derivatives
Definition:
gsw_mod_toolbox.f90:1336
gsw_thermobaric
elemental real(r8) function gsw_thermobaric(sa, ct, p)
Definition:
gsw_thermobaric.f90:3
src
fv3-bundle
gsw
toolbox
gsw_thermobaric.f90
Generated on Tue Nov 6 2018 11:39:00 for FV3 Bundle by
1.8.14