FV3 Bundle
gsw_nsquared_lowerlimit.f90
Go to the documentation of this file.
1
!==========================================================================
2
elemental function
gsw_nsquared_lowerlimit
(p, long, lat)
3
!==========================================================================
4
!
5
! Calculates the minimum buoyancy (Brunt-Vaisala) frequency squared (N^2)
6
! such that a cast is stable.
7
!
8
! p = sea pressure [ dbar ]
9
! ( i.e. absolute pressure - 10.1325 dbar )
10
! long = longitude in decimal degrees [ 0 ... +360 ]
11
! or [ -180 ... +180 ]
12
! lat = latitude in decimal degrees north [ -90 ... +90 ]
13
!
14
! nsquared_lowerlimit = Minimum Brunt-Vaisala Frequency squared [ 1/s^2 ]
15
!
16
!==========================================================================
17
18
use
gsw_mod_kinds
19
20
implicit none
21
22
real (r8)
,
intent(in)
:: p,
long
, lat
23
24
real (r8)
::
gsw_nsquared_lowerlimit
25
26
real (r8)
:: long360
27
28
if
(
long
.lt. 0.0_r8)
then
29
long360 =
long
+ 360.0_r8
30
else
31
long360 =
long
32
end if
33
34
gsw_nsquared_lowerlimit
= (0.25_r8 + 0.75_r8*(exp(-p/1000.0_r8))) * 1e-7_r8
35
36
return
37
end function
38
39
!--------------------------------------------------------------------------
type_kinds::long
integer, parameter, public long
Definition:
Type_Kinds.f90:76
gsw_nsquared_lowerlimit
elemental real(r8) function gsw_nsquared_lowerlimit(p, long, lat)
Definition:
gsw_nsquared_lowerlimit.f90:3
gsw_mod_kinds
Definition:
gsw_mod_kinds.f90:2
src
fv3-bundle
gsw
toolbox
gsw_nsquared_lowerlimit.f90
Generated on Tue Nov 6 2018 11:39:00 for FV3 Bundle by
1.8.14