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