source: trunk/LMDZ.MARS/libf/phymars/phys_state_var_init_mod.F90 @ 1619

Last change on this file since 1619 was 1524, checked in by emillour, 9 years ago

All GCMS:
More updates to enforce dynamics/physics separation:

get rid of references to "temps_mod" from physics packages;
make a "time_phylmdz_mod.F90" module to store that
information and fill it via "iniphysiq".

EM

File size: 2.6 KB
Line 
1MODULE phys_state_var_init_mod
2
3CONTAINS
4
5      SUBROUTINE phys_state_var_init(ngrid,nlayer,nq, &
6                                     day_ini,hour_ini,pdaysec,ptimestep, &
7                                     prad,pg,pr,pcpp)
8
9!=======================================================================
10!
11!   purpose:
12!   -------
13!
14!   Allocate arrays in modules
15!   Fill geometrical arrays
16!   Fill a first set of physical constants
17!   -- was done previously in inifis
18!
19!=======================================================================
20!   
21!   authors: Ehouarn Millour and Aymeric Spiga
22!            14/04/2014
23!
24!   arguments:
25!   ----------
26!
27!   input:
28!   ------
29!
30!    ngrid                 Size of the horizontal grid.
31!    nlayer                Number of vertical layers.
32!    nq                    Number of tracers.
33!
34!=======================================================================
35
36      use slope_mod, only: ini_slope_mod
37      use comsaison_h, only: ini_comsaison_h
38      use surfdat_h, only: ini_surfdat_h
39      use comgeomfi_h, only: ini_comgeomfi_h
40      use comsoil_h, only: ini_comsoil_h
41      use dimradmars_mod, only: ini_dimradmars_mod
42      use yomlw_h, only: ini_yomlw_h
43      use conc_mod, only: ini_conc_mod
44      use turb_mod, only: ini_turb_mod
45      use comcstfi_h, only: pi,rad,cpp,g,r,rcp
46      use tracer_mod, only: nqmx
47      use time_phylmdz_mod, only: init_time
48
49      IMPLICIT NONE
50     
51      INTEGER,INTENT(IN) :: ngrid,nlayer,nq
52      INTEGER,INTENT(IN) :: day_ini
53      REAL,INTENT(IN) :: hour_ini
54      REAL,INTENT(IN) :: pdaysec,ptimestep,prad,pg,pr,pcpp
55
56      ! set dimension in tracer_mod
57      nqmx=nq
58
59      ! set parameters in comcstfi_h
60      pi=2.*asin(1.)
61      rad=prad
62      cpp=pcpp
63      g=pg
64      r=pr
65      rcp=r/cpp
66
67      ! Initialize some "temporal and calendar" related variables
68      call init_time(day_ini,hour_ini,pdaysec,ptimestep)
69
70      ! allocate "slope_mod" arrays
71      call ini_slope_mod(ngrid)
72
73      ! allocate "comsaison_h" arrays
74      call ini_comsaison_h(ngrid)
75
76      ! allocate "surfdat_h" arrays
77      call ini_surfdat_h(ngrid,nq)
78
79      ! allocate "comgeomfi_h" arrays
80      call ini_comgeomfi_h(ngrid)
81
82      ! allocate "comsoil_h" arrays
83      call ini_comsoil_h(ngrid)
84
85      ! set some variables in "dimradmars_mod"
86      call ini_dimradmars_mod(ngrid,nlayer)
87
88      ! allocate arrays in "yomlw_h"
89      call ini_yomlw_h(ngrid)
90
91      ! allocate arrays in "conc_mod" (aeronomars)
92      call ini_conc_mod(ngrid,nlayer)
93
94      ! allocate arrays in "turb_mod"
95      call ini_turb_mod(ngrid,nlayer)
96
97      END SUBROUTINE phys_state_var_init
98
99END MODULE phys_state_var_init_mod
Note: See TracBrowser for help on using the repository browser.