FV3 Bundle
gsw_adiabatic_lapse_rate_from_ct.f90
Go to the documentation of this file.
1
!==========================================================================
2
elemental function
gsw_adiabatic_lapse_rate_from_ct
(sa, ct, p)
3
!==========================================================================
4
5
! Calculates the adiabatic lapse rate from Conservative Temperature
6
!
7
! sa : Absolute Salinity [g/kg]
8
! ct : Conservative Temperature [deg C]
9
! p : sea pressure [dbar]
10
!
11
! gsw_adiabatic_lapse_rate_from_ct : adiabatic lapse rate [K/Pa]
12
!--------------------------------------------------------------------------
13
14
use
gsw_mod_toolbox
,
only
:
gsw_gibbs
,
gsw_pt_from_ct
,
gsw_pt_from_t
15
16
use
gsw_mod_kinds
17
18
implicit none
19
20
real (r8)
,
intent(in)
:: sa, ct, p
21
22
real (r8)
::
gsw_adiabatic_lapse_rate_from_ct
23
24
real (r8)
:: pt0, t
25
26
integer
,
parameter
:: n0=0, n1=1, n2=2
27
real (r8)
,
parameter
:: pr0 = 0.0_r8
28
29
pt0 =
gsw_pt_from_ct
(sa,ct)
30
t =
gsw_pt_from_t
(sa,pt0,pr0,p)
31
32
gsw_adiabatic_lapse_rate_from_ct
= -
gsw_gibbs
(n0,n1,n1,sa,t,p) / &
33
gsw_gibbs
(n0,n2,n0,sa,t,p)
34
35
return
36
end function
37
38
!--------------------------------------------------------------------------
gsw_mod_toolbox::gsw_adiabatic_lapse_rate_from_ct
Definition:
gsw_mod_toolbox.f90:210
gsw_mod_toolbox
Definition:
gsw_mod_toolbox.f90:1
gsw_mod_toolbox::gsw_gibbs
Definition:
gsw_mod_toolbox.f90:625
gsw_mod_toolbox::gsw_pt_from_t
Definition:
gsw_mod_toolbox.f90:1030
gsw_mod_kinds
Definition:
gsw_mod_kinds.f90:2
gsw_mod_toolbox::gsw_pt_from_ct
Definition:
gsw_mod_toolbox.f90:995
gsw_adiabatic_lapse_rate_from_ct
elemental real(r8) function gsw_adiabatic_lapse_rate_from_ct(sa, ct, p)
Definition:
gsw_adiabatic_lapse_rate_from_ct.f90:3
src
fv3-bundle
gsw
toolbox
gsw_adiabatic_lapse_rate_from_ct.f90
Generated on Tue Nov 6 2018 11:38:36 for FV3 Bundle by
1.8.14