FV3 Bundle
gsw_entropy_from_pt.f90
Go to the documentation of this file.
1
!==========================================================================
2
elemental function
gsw_entropy_from_pt
(sa, pt)
3
!==========================================================================
4
!
5
! Calculates specific entropy of seawater.
6
!
7
! SA = Absolute Salinity [ g/kg ]
8
! pt = potential temperature (ITS-90) [ deg C ]
9
!
10
! entropy = specific entropy [ J/(kg*K) ]
11
!--------------------------------------------------------------------------
12
13
use
gsw_mod_toolbox
,
only
:
gsw_gibbs
14
15
use
gsw_mod_kinds
16
17
implicit none
18
19
real (r8)
,
intent(in)
:: sa, pt
20
21
real (r8)
::
gsw_entropy_from_pt
22
23
integer
,
parameter
:: n0 = 0
24
integer
,
parameter
:: n1 = 1
25
26
real (r8)
,
parameter
:: pr0 = 0.0_r8
27
28
gsw_entropy_from_pt
= -
gsw_gibbs
(n0,n1,n0,sa,pt,pr0)
29
30
return
31
end function
32
33
!--------------------------------------------------------------------------
gsw_mod_toolbox
Definition:
gsw_mod_toolbox.f90:1
gsw_mod_toolbox::gsw_gibbs
Definition:
gsw_mod_toolbox.f90:625
gsw_mod_toolbox::gsw_entropy_from_pt
Definition:
gsw_mod_toolbox.f90:520
gsw_mod_kinds
Definition:
gsw_mod_kinds.f90:2
gsw_entropy_from_pt
elemental real(r8) function gsw_entropy_from_pt(sa, pt)
Definition:
gsw_entropy_from_pt.f90:3
src
fv3-bundle
gsw
toolbox
gsw_entropy_from_pt.f90
Generated on Tue Nov 6 2018 11:38:36 for FV3 Bundle by
1.8.14