1 | ! |
---|
2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/conf_phys.F90,v 1.3 2005/02/07 15:15:31 fairhead Exp $ |
---|
3 | ! |
---|
4 | ! |
---|
5 | ! |
---|
6 | |
---|
7 | subroutine conf_phys(ok_journe, ok_mensuel, ok_instan, & |
---|
8 | & if_ebil) |
---|
9 | |
---|
10 | use IOIPSL |
---|
11 | implicit none |
---|
12 | |
---|
13 | #include "YOMCST.inc" |
---|
14 | #include "clesphys.inc" |
---|
15 | #include "compbl.h" |
---|
16 | ! |
---|
17 | ! Configuration de la "physique" de LMDZ a l'aide de la fonction |
---|
18 | ! GETIN de IOIPSL |
---|
19 | ! |
---|
20 | ! LF 05/2001 |
---|
21 | ! |
---|
22 | !--- Ca lit le physiq.def --- |
---|
23 | |
---|
24 | ! |
---|
25 | ! ok_journe: sorties journalieres |
---|
26 | ! ok_mensuel: sorties mensuelles |
---|
27 | ! ok_instan: sorties instantanees |
---|
28 | |
---|
29 | |
---|
30 | ! Sortie: |
---|
31 | logical :: ok_journe, ok_mensuel, ok_instan |
---|
32 | integer :: if_ebil |
---|
33 | |
---|
34 | ! Local |
---|
35 | integer :: numout = 6 |
---|
36 | real*4 :: zzz |
---|
37 | ! real :: zzz |
---|
38 | |
---|
39 | !Config Key = OK_journe |
---|
40 | !Config Desc = Pour des sorties journalieres |
---|
41 | !Config Def = .false. |
---|
42 | !Config Help = Pour creer le fichier histday contenant les sorties |
---|
43 | ! journalieres |
---|
44 | ! |
---|
45 | ok_journe = .false. |
---|
46 | call getin('OK_journe', ok_journe) |
---|
47 | ! |
---|
48 | !Config Key = OK_mensuel |
---|
49 | !Config Desc = Pour des sorties mensuelles |
---|
50 | !Config Def = .true. |
---|
51 | !Config Help = Pour creer le fichier histmth contenant les sorties |
---|
52 | ! mensuelles |
---|
53 | ! |
---|
54 | ok_mensuel = .true. |
---|
55 | call getin('OK_mensuel', ok_mensuel) |
---|
56 | ! |
---|
57 | !Config Key = OK_instan |
---|
58 | !Config Desc = Pour des sorties instantanees |
---|
59 | !Config Def = .false. |
---|
60 | !Config Help = Pour creer le fichier histins contenant les sorties |
---|
61 | ! instantanees |
---|
62 | ! |
---|
63 | ok_instan = .false. |
---|
64 | call getin('OK_instan', ok_instan) |
---|
65 | ! |
---|
66 | ! |
---|
67 | !Config Key = if_ebil |
---|
68 | !Config Desc = Niveau de sortie pour les diags bilan d'energie |
---|
69 | !Config Def = 0 |
---|
70 | !Config Help = |
---|
71 | ! |
---|
72 | ! |
---|
73 | if_ebil = 0 |
---|
74 | call getin('if_ebil', if_ebil) |
---|
75 | !! |
---|
76 | !! Constante solaire & Parametres orbitaux & taux gaz effet de serre BEG |
---|
77 | !! |
---|
78 | !Config Key = R_ecc |
---|
79 | !Config Desc = Excentricite |
---|
80 | !Config Def = 0.006787 |
---|
81 | !Config Help = |
---|
82 | ! |
---|
83 | ! VENUS |
---|
84 | ! R_ecc = 0.006787 |
---|
85 | zzz = 0.0 |
---|
86 | call getin('R_ecc', zzz) |
---|
87 | R_ecc = zzz |
---|
88 | !! |
---|
89 | !Config Key = R_peri |
---|
90 | !Config Desc = Equinoxe |
---|
91 | !Config Def = |
---|
92 | !Config Help = |
---|
93 | ! |
---|
94 | ! VENUS |
---|
95 | zzz = 0. |
---|
96 | call getin('R_peri', zzz) |
---|
97 | R_peri = zzz |
---|
98 | !! |
---|
99 | !Config Key = R_incl |
---|
100 | !Config Desc = Inclinaison |
---|
101 | !Config Def = |
---|
102 | !Config Help = |
---|
103 | ! |
---|
104 | ! VENUS |
---|
105 | zzz = 0.0 |
---|
106 | call getin('R_incl', zzz) |
---|
107 | R_incl = zzz |
---|
108 | ! |
---|
109 | !Config Key = solaire |
---|
110 | !Config Desc = Constante solaire en W/m2 |
---|
111 | ! VENUS |
---|
112 | !Config Def = 2620. |
---|
113 | !Config Help = |
---|
114 | ! |
---|
115 | zzz = 2620. |
---|
116 | call getin('solaire', zzz) |
---|
117 | solaire = zzz |
---|
118 | ! |
---|
119 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
120 | ! PARAMETER FOR THE PLANETARY BOUNDARY LAYER AND SOIL |
---|
121 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
122 | ! |
---|
123 | !Config Key = iflag_pbl |
---|
124 | !Config Desc = |
---|
125 | !Config Def = 1 |
---|
126 | !Config Help = |
---|
127 | ! |
---|
128 | ! 2 = calculs Cd et K simples pour VENUS : |
---|
129 | ! parametres = z0, lmixmin, ksta (en dur: umin2,ric,cepdu2,karman) |
---|
130 | ! 1 = calculs Cd et K issus LMDZ Terre |
---|
131 | ! parametres = ksta, ok_kzmin (et plein d'autres en dur...) |
---|
132 | ! 6-9 = schema des thermiques Fred |
---|
133 | iflag_pbl = 1 |
---|
134 | call getin('iflag_pbl',iflag_pbl) |
---|
135 | |
---|
136 | ! |
---|
137 | !Config Key = ksta |
---|
138 | !Config Desc = |
---|
139 | !Config Def = 1.0e-7 |
---|
140 | !Config Help = |
---|
141 | ! |
---|
142 | zzz = 1.0e-7 |
---|
143 | call getin('ksta',zzz) |
---|
144 | ksta = zzz |
---|
145 | |
---|
146 | ! |
---|
147 | !Config Key = z0 |
---|
148 | !Config Desc = |
---|
149 | !Config Def = 1.0e-2 |
---|
150 | !Config Help = |
---|
151 | ! |
---|
152 | zzz = 1.0e-2 |
---|
153 | call getin('z0',zzz) |
---|
154 | z0 = zzz |
---|
155 | |
---|
156 | ! |
---|
157 | !Config Key = lmixmin |
---|
158 | !Config Desc = |
---|
159 | !Config Def = 35. |
---|
160 | !Config Help = |
---|
161 | ! |
---|
162 | zzz = 35. |
---|
163 | call getin('lmixmin',zzz) |
---|
164 | lmixmin = zzz |
---|
165 | |
---|
166 | ! |
---|
167 | ! |
---|
168 | !Config Key = ok_kzmin |
---|
169 | !Config Desc = |
---|
170 | !Config Def = .false. |
---|
171 | !Config Help = |
---|
172 | ! |
---|
173 | ok_kzmin = .false. |
---|
174 | call getin('ok_kzmin',ok_kzmin) |
---|
175 | |
---|
176 | |
---|
177 | !Config Key = iflag_ajs |
---|
178 | !Config Desc = |
---|
179 | !Config Def = 0 |
---|
180 | !Config Help = |
---|
181 | ! |
---|
182 | iflag_ajs = 1 |
---|
183 | call getin('iflag_ajs',iflag_ajs) |
---|
184 | |
---|
185 | ! |
---|
186 | !Config Key = inertie |
---|
187 | !Config Desc = |
---|
188 | !Config Def = 30000. |
---|
189 | !Config Help = |
---|
190 | ! |
---|
191 | zzz = 30000. |
---|
192 | call getin('inertie',zzz) |
---|
193 | inertie = zzz |
---|
194 | ! |
---|
195 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
196 | ! PARAMETER FOR THE OUTPUT LEVELS |
---|
197 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
198 | ! |
---|
199 | !Config Key = lev_histhf |
---|
200 | !Config Desc = |
---|
201 | !Config Def = 0 |
---|
202 | !Config Help = |
---|
203 | ! |
---|
204 | lev_histhf = 0 |
---|
205 | call getin('lev_histhf',lev_histhf) |
---|
206 | |
---|
207 | ! |
---|
208 | !Config Key = lev_histday |
---|
209 | !Config Desc = |
---|
210 | !Config Def = 1 |
---|
211 | !Config Help = |
---|
212 | ! |
---|
213 | lev_histday = 1 |
---|
214 | call getin('lev_histday',lev_histday) |
---|
215 | |
---|
216 | ! |
---|
217 | !Config Key = lev_histmth |
---|
218 | !Config Desc = |
---|
219 | !Config Def = 2 |
---|
220 | !Config Help = |
---|
221 | ! |
---|
222 | lev_histmth = 2 |
---|
223 | call getin('lev_histmth',lev_histmth) |
---|
224 | |
---|
225 | ! |
---|
226 | ! |
---|
227 | !Config Key = |
---|
228 | !Config Desc = |
---|
229 | !Config Def = |
---|
230 | !Config Help = |
---|
231 | ! |
---|
232 | ! = |
---|
233 | ! call getin('',) |
---|
234 | ! |
---|
235 | ! |
---|
236 | ! |
---|
237 | ! |
---|
238 | |
---|
239 | write(numout,*)' ##############################################' |
---|
240 | write(numout,*)' Configuration des parametres de la physique: ' |
---|
241 | write(numout,*)' Sortie journaliere = ', ok_journe |
---|
242 | write(numout,*)' Sortie mensuelle = ', ok_mensuel |
---|
243 | write(numout,*)' Sortie instantanee = ', ok_instan |
---|
244 | write(numout,*)' Sortie bilan d''energie, if_ebil =', if_ebil |
---|
245 | write(numout,*)' Excentricite = ',R_ecc |
---|
246 | write(numout,*)' Equinoxe = ',R_peri |
---|
247 | write(numout,*)' Inclinaison =',R_incl |
---|
248 | write(numout,*)' iflag_pbl = ', iflag_pbl |
---|
249 | write(numout,*)' z0 = ',z0 |
---|
250 | write(numout,*)' lmixmin = ',lmixmin |
---|
251 | write(numout,*)' ksta = ',ksta |
---|
252 | write(numout,*)' ok_kzmin = ',ok_kzmin |
---|
253 | write(numout,*)' inertie = ', inertie |
---|
254 | write(numout,*)' iflag_ajs = ', iflag_ajs |
---|
255 | write(numout,*)' lev_histhf = ',lev_histhf |
---|
256 | write(numout,*)' lev_histday = ',lev_histday |
---|
257 | write(numout,*)' lev_histmth = ',lev_histmth |
---|
258 | |
---|
259 | return |
---|
260 | |
---|
261 | end subroutine conf_phys |
---|
262 | |
---|