-
Notifications
You must be signed in to change notification settings - Fork 0
/
m_constants.ftn90
52 lines (52 loc) · 1.18 KB
/
m_constants.ftn90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
!------------------------------------------------------------------------------
module m_constants
!------------------------------------------------------------------------------
!
! physical constants
!
real sqrtg ! square root of grav
real gsq ! square of grav
real nu ! kinematic viscosity of water
!
real d_water ! density of water
real d_air ! density of air
!
real trshdep ! treshold depth (=DEPMIN as given by SWAN)
!
! mathematical constants
!
real pih ! pi/2
real dera ! conversion from degrees to radians
real rade ! conversion from radians to degrees
real expmin ! min argument for exp. function to avoid underflow
real expmax ! max argument for exp. function to avoid overflow
real sqrt2 ! square root of 2 ~ 1.41
!
contains
!
!------------------------------------------------------------------------------
subroutine init_constants
!------------------------------------------------------------------------------
!
use SWCOMM3
!
pih = 0.5*PI
dera = PI/180.
rade = 180./PI
!
expmin = -20.
expmax = 20.
!
! physical constants
!
sqrtg = sqrt(GRAV)
gsq = GRAV*GRAV
nu = 1.e-6
d_air = PWIND(16)
d_water = PWIND(17)
!
trshdep = DEPMIN
!
end subroutine
!
end module