source: codes/icosagcm/branches/SATURN_DYNAMICO/ICOSAGCM/src/earth_const.f90 @ 234

Last change on this file since 234 was 234, checked in by ymipsl, 10 years ago

scaleheight-> scale_height

YM

File size: 1.1 KB
Line 
1MODULE earth_const
2  USE prec
3  USE math_const
4 
5  REAL(rstd),SAVE :: radius=6.37122E6
6  REAL(rstd),SAVE :: g=9.80616
7  REAL(rstd),PARAMETER :: daysec=86400
8  REAL(rstd),SAVE :: omega=7.292E-5
9  REAL(rstd),SAVE :: kappa=0.2857143
10  REAL(rstd),SAVE :: cpp=1004.70885
11  REAL(rstd),SAVE :: preff=101325.
12  REAL(rstd),SAVE :: pa=50000.
13  REAL(rstd),SAVE :: scale_height=8000. ! atmospheric scale height (m)
14  REAL(rstd),SAVE :: scale_factor=1.
15
16  LOGICAL, SAVE :: boussinesq
17
18CONTAINS
19 
20  SUBROUTINE init_earth_const
21  USE getin_mod
22  IMPLICIT NONE
23  REAL(rstd) :: X=1
24 
25    CALL getin("radius",radius)
26    CALL getin("g",g)
27    CALL getin("scale_factor",scale_factor)
28    CALL getin("omega",omega) 
29    CALL getin("kappa",kappa) 
30    CALL getin("cpp",cpp) 
31    CALL getin("preff",preff) 
32    CALL getin("scale_height",scale_height)
33   
34    boussinesq=.FALSE.
35    CALL getin("boussinesq",boussinesq) 
36   
37    radius=radius/scale_factor
38    omega=omega*scale_factor
39   
40  END SUBROUTINE init_earth_const
41 
42 
43END MODULE earth_const
44 
Note: See TracBrowser for help on using the repository browser.