FV3 Bundle
gsw_specvol.f90
Go to the documentation of this file.
1
!==========================================================================
2
elemental function
gsw_specvol
(sa, ct, p)
3
!==========================================================================
4
!
5
! Calculates specific volume from Absolute Salinity, Conservative
6
! Temperature and pressure, using the computationally-efficient
7
! polynomial expression for specific volume (Roquet et al., 2014).
8
!
9
! SA = Absolute Salinity [ g/kg ]
10
! CT = Conservative Temperature (ITS-90) [ deg C ]
11
! p = sea pressure [ dbar ]
12
! ( i.e. absolute pressure - 10.1325 dbar )
13
!
14
! specvol = specific volume [ m^3/kg ]
15
!--------------------------------------------------------------------------
16
17
use
gsw_mod_teos10_constants
,
only
:
gsw_sfac
,
offset
18
19
use
gsw_mod_specvol_coefficients
20
21
use
gsw_mod_kinds
22
23
implicit none
24
25
real (r8)
,
intent(in)
:: sa, ct, p
26
27
real (r8)
::
gsw_specvol
28
29
real (r8)
:: xs, ys, z
30
31
xs = sqrt(
gsw_sfac
*sa +
offset
)
32
ys = ct*0.025_r8
33
z = p*1e-4_r8
34
35
gsw_specvol
=
v000
+ xs*(
v010
+ xs*(
v020
+ xs*(
v030
+ xs*(
v040
+ xs*(
v050
&
36
+
v060
*xs))))) + ys*(
v100
+ xs*(
v110
+ xs*(
v120
+ xs*(
v130
+ xs*(
v140
&
37
+
v150
*xs)))) + ys*(
v200
+ xs*(
v210
+ xs*(
v220
+ xs*(
v230
+
v240
*xs))) &
38
+ ys*(
v300
+ xs*(
v310
+ xs*(
v320
+
v330
*xs)) + ys*(
v400
+ xs*(
v410
&
39
+
v420
*xs) + ys*(
v500
+
v510
*xs +
v600
*ys))))) + z*(
v001
+ xs*(
v011
&
40
+ xs*(
v021
+ xs*(
v031
+ xs*(
v041
+
v051
*xs)))) + ys*(
v101
+ xs*(
v111
&
41
+ xs*(
v121
+ xs*(
v131
+
v141
*xs))) + ys*(
v201
+ xs*(
v211
+ xs*(
v221
&
42
+
v231
*xs)) + ys*(
v301
+ xs*(
v311
+
v321
*xs) + ys*(
v401
+
v411
*xs &
43
+
v501
*ys)))) + z*(
v002
+ xs*(
v012
+ xs*(
v022
+ xs*(
v032
+
v042
*xs))) &
44
+ ys*(
v102
+ xs*(
v112
+ xs*(
v122
+
v132
*xs)) + ys*(
v202
+ xs*(
v212
&
45
+
v222
*xs) + ys*(
v302
+
v312
*xs +
v402
*ys))) + z*(
v003
+ xs*(
v013
&
46
+
v023
*xs) + ys*(
v103
+
v113
*xs +
v203
*ys) + z*(
v004
+
v014
*xs +
v104
*ys &
47
+ z*(
v005
+
v006
*z)))))
48
49
return
50
end function
51
52
!--------------------------------------------------------------------------
gsw_mod_specvol_coefficients::v211
real(r8), parameter v211
Definition:
gsw_mod_specvol_coefficients.f90:283
gsw_mod_specvol_coefficients::v003
real(r8), parameter v003
Definition:
gsw_mod_specvol_coefficients.f90:238
gsw_mod_specvol_coefficients::v021
real(r8), parameter v021
Definition:
gsw_mod_specvol_coefficients.f90:248
gsw_mod_specvol_coefficients::v005
real(r8), parameter v005
Definition:
gsw_mod_specvol_coefficients.f90:240
gsw_mod_specvol_coefficients::v000
real(r8), parameter v000
Definition:
gsw_mod_specvol_coefficients.f90:235
gsw_mod_specvol_coefficients::v104
real(r8), parameter v104
Definition:
gsw_mod_specvol_coefficients.f90:264
gsw_mod_specvol_coefficients::v102
real(r8), parameter v102
Definition:
gsw_mod_specvol_coefficients.f90:262
gsw_mod_specvol_coefficients::v121
real(r8), parameter v121
Definition:
gsw_mod_specvol_coefficients.f90:270
gsw_mod_specvol_coefficients::v012
real(r8), parameter v012
Definition:
gsw_mod_specvol_coefficients.f90:244
gsw_mod_specvol_coefficients::v210
real(r8), parameter v210
Definition:
gsw_mod_specvol_coefficients.f90:282
gsw_mod_specvol_coefficients::v032
real(r8), parameter v032
Definition:
gsw_mod_specvol_coefficients.f90:253
gsw_mod_specvol_coefficients::v140
real(r8), parameter v140
Definition:
gsw_mod_specvol_coefficients.f90:275
gsw_mod_specvol_coefficients::v202
real(r8), parameter v202
Definition:
gsw_mod_specvol_coefficients.f90:280
gsw_mod_specvol_coefficients::v201
real(r8), parameter v201
Definition:
gsw_mod_specvol_coefficients.f90:279
gsw_mod_specvol_coefficients::v312
real(r8), parameter v312
Definition:
gsw_mod_specvol_coefficients.f90:296
gsw_mod_specvol_coefficients::v022
real(r8), parameter v022
Definition:
gsw_mod_specvol_coefficients.f90:249
gsw_mod_specvol_coefficients::v240
real(r8), parameter v240
Definition:
gsw_mod_specvol_coefficients.f90:290
gsw_mod_specvol_coefficients::v321
real(r8), parameter v321
Definition:
gsw_mod_specvol_coefficients.f90:298
gsw_mod_specvol_coefficients::v402
real(r8), parameter v402
Definition:
gsw_mod_specvol_coefficients.f90:302
gsw_mod_specvol_coefficients::v041
real(r8), parameter v041
Definition:
gsw_mod_specvol_coefficients.f90:255
gsw_mod_specvol_coefficients::v051
real(r8), parameter v051
Definition:
gsw_mod_specvol_coefficients.f90:258
gsw_mod_specvol_coefficients::v510
real(r8), parameter v510
Definition:
gsw_mod_specvol_coefficients.f90:308
gsw_mod_specvol_coefficients::v111
real(r8), parameter v111
Definition:
gsw_mod_specvol_coefficients.f90:266
gsw_mod_teos10_constants
Definition:
gsw_mod_teos10_constants.f90:2
gsw_mod_specvol_coefficients::v301
real(r8), parameter v301
Definition:
gsw_mod_specvol_coefficients.f90:292
gsw_mod_specvol_coefficients::v411
real(r8), parameter v411
Definition:
gsw_mod_specvol_coefficients.f90:304
gsw_mod_specvol_coefficients::v221
real(r8), parameter v221
Definition:
gsw_mod_specvol_coefficients.f90:286
gsw_mod_specvol_coefficients::v150
real(r8), parameter v150
Definition:
gsw_mod_specvol_coefficients.f90:277
gsw_mod_specvol_coefficients::v011
real(r8), parameter v011
Definition:
gsw_mod_specvol_coefficients.f90:243
gsw_mod_specvol_coefficients::v101
real(r8), parameter v101
Definition:
gsw_mod_specvol_coefficients.f90:261
gsw_mod_specvol_coefficients::v401
real(r8), parameter v401
Definition:
gsw_mod_specvol_coefficients.f90:301
gsw_mod_specvol_coefficients::v501
real(r8), parameter v501
Definition:
gsw_mod_specvol_coefficients.f90:307
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::v231
real(r8), parameter v231
Definition:
gsw_mod_specvol_coefficients.f90:289
gsw_mod_specvol_coefficients::v113
real(r8), parameter v113
Definition:
gsw_mod_specvol_coefficients.f90:268
gsw_mod_specvol_coefficients::v203
real(r8), parameter v203
Definition:
gsw_mod_specvol_coefficients.f90:281
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_specvol_coefficients::v042
real(r8), parameter v042
Definition:
gsw_mod_specvol_coefficients.f90:256
gsw_mod_specvol_coefficients::v014
real(r8), parameter v014
Definition:
gsw_mod_specvol_coefficients.f90:246
gsw_mod_specvol_coefficients::v006
real(r8), parameter v006
Definition:
gsw_mod_specvol_coefficients.f90:241
gsw_mod_specvol_coefficients::v103
real(r8), parameter v103
Definition:
gsw_mod_specvol_coefficients.f90:263
gsw_mod_specvol_coefficients::v132
real(r8), parameter v132
Definition:
gsw_mod_specvol_coefficients.f90:274
gsw_mod_specvol_coefficients::v001
real(r8), parameter v001
Definition:
gsw_mod_specvol_coefficients.f90:236
gsw_mod_kinds
Definition:
gsw_mod_kinds.f90:2
gsw_mod_specvol_coefficients::v031
real(r8), parameter v031
Definition:
gsw_mod_specvol_coefficients.f90:252
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_mod_specvol_coefficients::v122
real(r8), parameter v122
Definition:
gsw_mod_specvol_coefficients.f90:271
gsw_mod_specvol_coefficients::v020
real(r8), parameter v020
Definition:
gsw_mod_specvol_coefficients.f90:247
gsw_mod_specvol_coefficients::v302
real(r8), parameter v302
Definition:
gsw_mod_specvol_coefficients.f90:293
gsw_mod_specvol_coefficients::v110
real(r8), parameter v110
Definition:
gsw_mod_specvol_coefficients.f90:265
gsw_mod_specvol_coefficients::v131
real(r8), parameter v131
Definition:
gsw_mod_specvol_coefficients.f90:273
gsw_mod_specvol_coefficients::v420
real(r8), parameter v420
Definition:
gsw_mod_specvol_coefficients.f90:305
gsw_mod_specvol_coefficients::v222
real(r8), parameter v222
Definition:
gsw_mod_specvol_coefficients.f90:287
gsw_mod_specvol_coefficients::v023
real(r8), parameter v023
Definition:
gsw_mod_specvol_coefficients.f90:250
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::v013
real(r8), parameter v013
Definition:
gsw_mod_specvol_coefficients.f90:245
gsw_mod_specvol_coefficients::v320
real(r8), parameter v320
Definition:
gsw_mod_specvol_coefficients.f90:297
gsw_mod_specvol_coefficients::v212
real(r8), parameter v212
Definition:
gsw_mod_specvol_coefficients.f90:284
gsw_mod_teos10_constants::gsw_sfac
real(r8), parameter gsw_sfac
Definition:
gsw_mod_teos10_constants.f90:45
gsw_mod_specvol_coefficients::v002
real(r8), parameter v002
Definition:
gsw_mod_specvol_coefficients.f90:237
gsw_mod_specvol_coefficients::v311
real(r8), parameter v311
Definition:
gsw_mod_specvol_coefficients.f90:295
gsw_specvol
elemental real(r8) function gsw_specvol(sa, ct, p)
Definition:
gsw_specvol.f90:3
gsw_mod_specvol_coefficients::v030
real(r8), parameter v030
Definition:
gsw_mod_specvol_coefficients.f90:251
gsw_mod_specvol_coefficients::v141
real(r8), parameter v141
Definition:
gsw_mod_specvol_coefficients.f90:276
gsw_mod_specvol_coefficients::v130
real(r8), parameter v130
Definition:
gsw_mod_specvol_coefficients.f90:272
gsw_mod_specvol_coefficients::v112
real(r8), parameter v112
Definition:
gsw_mod_specvol_coefficients.f90:267
gsw_mod_specvol_coefficients::v004
real(r8), parameter v004
Definition:
gsw_mod_specvol_coefficients.f90:239
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_specvol.f90
Generated on Tue Nov 6 2018 11:39:00 for FV3 Bundle by
1.8.14