FV3 Bundle
gsw_sigma0.f90
Go to the documentation of this file.
1
!==========================================================================
2
elemental function
gsw_sigma0
(sa, ct)
3
!==========================================================================
4
!
5
! Calculates potential density anomaly with reference pressure of 0 dbar,
6
! this being this particular potential density minus 1000 kg/m^3. This
7
! function has inputs of Absolute Salinity and Conservative Temperature.
8
! This function uses the computationally-efficient expression for
9
! specific volume in terms of SA, CT and p (Roquet et al., 2014).
10
!
11
! SA = Absolute Salinity [ g/kg ]
12
! CT = Conservative Temperature (ITS-90) [ deg C ]
13
!
14
! sigma0 = potential density anomaly with [ kg/m^3 ]
15
! respect to a reference pressure of 0 dbar,
16
! that is, this potential density - 1000 kg/m^3.
17
!--------------------------------------------------------------------------
18
19
use
gsw_mod_teos10_constants
,
only
:
gsw_sfac
,
offset
20
21
use
gsw_mod_specvol_coefficients
22
23
use
gsw_mod_kinds
24
25
implicit none
26
27
real (r8)
,
intent(in)
:: sa, ct
28
29
real (r8)
::
gsw_sigma0
30
31
real (r8)
:: vp0, xs, ys
32
33
xs = sqrt(
gsw_sfac
*sa +
offset
)
34
ys = ct*0.025_r8
35
36
vp0 =
v000
+ xs*(
v010
+ xs*(
v020
+ xs*(
v030
+ xs*(
v040
+ xs*(
v050
&
37
+
v060
*xs))))) + ys*(
v100
+ xs*(
v110
+ xs*(
v120
+ xs*(
v130
+ xs*(
v140
&
38
+
v150
*xs)))) + ys*(
v200
+ xs*(
v210
+ xs*(
v220
+ xs*(
v230
+
v240
*xs))) &
39
+ ys*(
v300
+ xs*(
v310
+ xs*(
v320
+
v330
*xs)) + ys*(
v400
+ xs*(
v410
&
40
+
v420
*xs) + ys*(
v500
+
v510
*xs +
v600
*ys)))))
41
42
gsw_sigma0
= 1.0_r8/vp0 - 1000.0_r8
43
44
return
45
end function
46
47
!--------------------------------------------------------------------------
gsw_mod_specvol_coefficients::v000
real(r8), parameter v000
Definition:
gsw_mod_specvol_coefficients.f90:235
gsw_mod_specvol_coefficients::v210
real(r8), parameter v210
Definition:
gsw_mod_specvol_coefficients.f90:282
gsw_mod_specvol_coefficients::v140
real(r8), parameter v140
Definition:
gsw_mod_specvol_coefficients.f90:275
gsw_mod_specvol_coefficients::v240
real(r8), parameter v240
Definition:
gsw_mod_specvol_coefficients.f90:290
gsw_mod_specvol_coefficients::v510
real(r8), parameter v510
Definition:
gsw_mod_specvol_coefficients.f90:308
gsw_mod_teos10_constants
Definition:
gsw_mod_teos10_constants.f90:2
gsw_mod_specvol_coefficients::v150
real(r8), parameter v150
Definition:
gsw_mod_specvol_coefficients.f90:277
gsw_mod_teos10_constants::offset
real(r8), parameter offset
Definition:
gsw_mod_teos10_constants.f90:49
gsw_mod_specvol_coefficients::v230
real(r8), parameter v230
Definition:
gsw_mod_specvol_coefficients.f90:288
gsw_mod_specvol_coefficients::v010
real(r8), parameter v010
Definition:
gsw_mod_specvol_coefficients.f90:242
gsw_mod_specvol_coefficients::v600
real(r8), parameter v600
Definition:
gsw_mod_specvol_coefficients.f90:309
gsw_mod_specvol_coefficients::v040
real(r8), parameter v040
Definition:
gsw_mod_specvol_coefficients.f90:254
gsw_mod_specvol_coefficients::v220
real(r8), parameter v220
Definition:
gsw_mod_specvol_coefficients.f90:285
gsw_mod_kinds
Definition:
gsw_mod_kinds.f90:2
gsw_mod_specvol_coefficients::v400
real(r8), parameter v400
Definition:
gsw_mod_specvol_coefficients.f90:300
gsw_mod_specvol_coefficients::v310
real(r8), parameter v310
Definition:
gsw_mod_specvol_coefficients.f90:294
gsw_sigma0
elemental real(r8) function gsw_sigma0(sa, ct)
Definition:
gsw_sigma0.f90:3
gsw_mod_specvol_coefficients::v020
real(r8), parameter v020
Definition:
gsw_mod_specvol_coefficients.f90:247
gsw_mod_specvol_coefficients::v110
real(r8), parameter v110
Definition:
gsw_mod_specvol_coefficients.f90:265
gsw_mod_specvol_coefficients::v420
real(r8), parameter v420
Definition:
gsw_mod_specvol_coefficients.f90:305
gsw_mod_specvol_coefficients::v100
real(r8), parameter v100
Definition:
gsw_mod_specvol_coefficients.f90:260
gsw_mod_specvol_coefficients::v060
real(r8), parameter v060
Definition:
gsw_mod_specvol_coefficients.f90:259
gsw_mod_specvol_coefficients::v320
real(r8), parameter v320
Definition:
gsw_mod_specvol_coefficients.f90:297
gsw_mod_teos10_constants::gsw_sfac
real(r8), parameter gsw_sfac
Definition:
gsw_mod_teos10_constants.f90:45
gsw_mod_specvol_coefficients::v030
real(r8), parameter v030
Definition:
gsw_mod_specvol_coefficients.f90:251
gsw_mod_specvol_coefficients::v130
real(r8), parameter v130
Definition:
gsw_mod_specvol_coefficients.f90:272
gsw_mod_specvol_coefficients::v200
real(r8), parameter v200
Definition:
gsw_mod_specvol_coefficients.f90:278
gsw_mod_specvol_coefficients::v300
real(r8), parameter v300
Definition:
gsw_mod_specvol_coefficients.f90:291
gsw_mod_specvol_coefficients::v330
real(r8), parameter v330
Definition:
gsw_mod_specvol_coefficients.f90:299
gsw_mod_specvol_coefficients::v500
real(r8), parameter v500
Definition:
gsw_mod_specvol_coefficients.f90:306
gsw_mod_specvol_coefficients::v120
real(r8), parameter v120
Definition:
gsw_mod_specvol_coefficients.f90:269
gsw_mod_specvol_coefficients::v410
real(r8), parameter v410
Definition:
gsw_mod_specvol_coefficients.f90:303
gsw_mod_specvol_coefficients
Definition:
gsw_mod_specvol_coefficients.f90:2
gsw_mod_specvol_coefficients::v050
real(r8), parameter v050
Definition:
gsw_mod_specvol_coefficients.f90:257
src
fv3-bundle
gsw
toolbox
gsw_sigma0.f90
Generated on Tue Nov 6 2018 11:39:00 for FV3 Bundle by
1.8.14