Loading [MathJax]/extensions/tex2jax.js
FV3 Bundle
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
f
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
o
p
r
s
t
v
+
Files
File List
+
File Members
+
All
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
!
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Variables
!
$
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
r
s
t
u
w
Typedefs
+
Macros
_
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
Modules
Pages
gsw_grav.f90
Go to the documentation of this file.
1
!==========================================================================
2
elemental function
gsw_grav
(lat, p)
3
!==========================================================================
4
!
5
! Calculates acceleration due to gravity as a function of latitude and as
6
! a function of pressure in the ocean.
7
!
8
! lat = latitude in decimal degress north [ -90 ... +90 ]
9
! p = sea pressure [ dbar ]
10
!
11
! gsw_grav : grav = gravitational acceleration [ m s^-2 ]
12
!--------------------------------------------------------------------------
13
14
use
gsw_mod_toolbox
,
only
:
gsw_z_from_p
15
16
use
gsw_mod_teos10_constants
,
only
:
deg2rad
,
gamma
17
18
use
gsw_mod_kinds
19
20
implicit none
21
22
real (r8)
,
intent(in)
:: lat, p
23
24
real (r8)
::
gsw_grav
25
26
real (r8)
:: sin2, gs, z
27
28
sin2 = sin(lat*
deg2rad
)**2
29
gs = 9.780327_r8*(1.0_r8 + (5.2792e-3_r8 + (2.32e-5_r8*sin2))*sin2)
30
31
z =
gsw_z_from_p
(p,lat)
32
33
gsw_grav
= gs*(1.0_r8 -
gamma
*z)
! z is the height corresponding to p.
34
! Note. In the ocean z is negative.
35
return
36
end function
37
38
!--------------------------------------------------------------------------
gsw_mod_toolbox
Definition:
gsw_mod_toolbox.f90:1
gsw_mod_toolbox::gsw_z_from_p
Definition:
gsw_mod_toolbox.f90:1534
gsw_mod_teos10_constants
Definition:
gsw_mod_teos10_constants.f90:2
gsw_mod_kinds
Definition:
gsw_mod_kinds.f90:2
gsw_mod_toolbox::gsw_grav
Definition:
gsw_mod_toolbox.f90:669
gsw_mod_teos10_constants::gamma
real(r8), parameter gamma
Definition:
gsw_mod_teos10_constants.f90:19
gsw_mod_teos10_constants::deg2rad
real(r8), parameter deg2rad
Definition:
gsw_mod_teos10_constants.f90:16
gsw_grav
elemental real(r8) function gsw_grav(lat, p)
Definition:
gsw_grav.f90:3
src
fv3-bundle
gsw
toolbox
gsw_grav.f90
Generated on Tue Nov 6 2018 11:38:36 for FV3 Bundle by
1.8.14