FV3 Bundle
gsw_kappa_t_exact.f90
Go to the documentation of this file.
1
!==========================================================================
2
elemental function
gsw_kappa_t_exact
(sa, t, p)
3
!==========================================================================
4
!
5
! isentropic compressibility of seawater
6
!
7
! sa : Absolute Salinity [g/kg]
8
! t : in-situ temperature [deg C]
9
! p : sea pressure [dbar]
10
!
11
! gsw_kappa_t_exact : isentropic compressibility [1/Pa]
12
!--------------------------------------------------------------------------
13
14
use
gsw_mod_toolbox
,
only
:
gsw_gibbs
15
16
use
gsw_mod_kinds
17
18
implicit none
19
20
real (r8)
,
intent(in)
:: sa, t, p
21
22
real (r8)
::
gsw_kappa_t_exact
23
24
real (r8)
:: g_tt, g_tp
25
26
integer
,
parameter
:: n0=0, n1=1, n2=2
27
28
g_tt =
gsw_gibbs
(n0,n2,n0,sa,t,p)
29
g_tp =
gsw_gibbs
(n0,n1,n1,sa,t,p)
30
31
gsw_kappa_t_exact
= (g_tp*g_tp - g_tt*
gsw_gibbs
(n0,n0,n2,sa,t,p)) / &
32
(
gsw_gibbs
(n0,n0,n1,sa,t,p)*g_tt)
33
34
return
35
end function
36
37
!--------------------------------------------------------------------------
gsw_mod_toolbox
Definition:
gsw_mod_toolbox.f90:1
gsw_kappa_t_exact
elemental real(r8) function gsw_kappa_t_exact(sa, t, p)
Definition:
gsw_kappa_t_exact.f90:3
gsw_mod_toolbox::gsw_gibbs
Definition:
gsw_mod_toolbox.f90:625
gsw_mod_toolbox::gsw_kappa_t_exact
Definition:
gsw_mod_toolbox.f90:741
gsw_mod_kinds
Definition:
gsw_mod_kinds.f90:2
src
fv3-bundle
gsw
toolbox
gsw_kappa_t_exact.f90
Generated on Tue Nov 6 2018 11:38:37 for FV3 Bundle by
1.8.14