1 | ! |
---|
2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/ini_histins.h,v 1.1.1.1 2004/05/19 12:53:08 lmdzadmin Exp $ |
---|
3 | ! |
---|
4 | IF (ok_instan) THEN |
---|
5 | |
---|
6 | zsto = dtime * ecrit_ins |
---|
7 | zout = dtime * ecrit_ins |
---|
8 | |
---|
9 | idayref = day_ref |
---|
10 | CALL ymds2ju(annee_ref, 1, idayref, zero, zjulian) |
---|
11 | |
---|
12 | call histbeg_phy("histins.nc",itau_phy, |
---|
13 | . zjulian,dtime,nhori,nid_ins) |
---|
14 | |
---|
15 | !$OMP MASTER |
---|
16 | CALL histvert(nid_ins, "presnivs", "Vertical levels", "Pa", |
---|
17 | . klev, presnivs, nvert) |
---|
18 | |
---|
19 | c------------------------------------------------------- |
---|
20 | IF(lev_histins.GE.1) THEN |
---|
21 | c |
---|
22 | ccccccccccccc 2D fields, basics |
---|
23 | c |
---|
24 | CALL histdef(nid_ins, "phis", "Surface geop. height", "-", |
---|
25 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
26 | . "once", zsto,zout) |
---|
27 | c |
---|
28 | CALL histdef(nid_ins, "aire", "Grid area", "-", |
---|
29 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
30 | . "once", zsto,zout) |
---|
31 | c |
---|
32 | CALL histdef(nid_ins, "tsol", "Surface Temperature", "K", |
---|
33 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
34 | . "ins(X)", zsto,zout) |
---|
35 | c |
---|
36 | CALL histdef(nid_ins, "psol", "Surface Pressure", "Pa", |
---|
37 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
38 | . "ins(X)", zsto,zout) |
---|
39 | c |
---|
40 | c CALL histdef(nid_ins, "ue", "Zonal energy transport", "-", |
---|
41 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
42 | c . "ins(X)", zsto,zout) |
---|
43 | c |
---|
44 | c CALL histdef(nid_ins, "ve", "Merid energy transport", "-", |
---|
45 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
46 | c . "ins(X)", zsto,zout) |
---|
47 | c |
---|
48 | c CALL histdef(nid_ins, "cdragh", "Drag coef on T", "-", |
---|
49 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
50 | c . "ins(X)", zsto,zout) |
---|
51 | c |
---|
52 | c CALL histdef(nid_ins, "cdragm", "Drag coef on U", "-", |
---|
53 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
54 | c . "ins(X)", zsto,zout) |
---|
55 | c |
---|
56 | ENDIF !lev_histins.GE.1 |
---|
57 | c |
---|
58 | c------------------------------------------------------- |
---|
59 | IF(lev_histins.GE.2) THEN |
---|
60 | c |
---|
61 | ccccccccccccc 3D fields, basics |
---|
62 | c |
---|
63 | CALL histdef(nid_ins, "temp", "Air temperature", "K", |
---|
64 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
65 | . "ins(X)", zsto,zout) |
---|
66 | c |
---|
67 | CALL histdef(nid_ins, "pres", "Air pressure", "Pa", |
---|
68 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
69 | . "ins(X)", zsto,zout) |
---|
70 | c |
---|
71 | CALL histdef(nid_ins, "geop", "Geopotential height", "m", |
---|
72 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
73 | . "ins(X)", zsto,zout) |
---|
74 | c |
---|
75 | CALL histdef(nid_ins, "vitu", "Zonal wind", "m/s", |
---|
76 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
77 | . "ins(X)", zsto,zout) |
---|
78 | c |
---|
79 | CALL histdef(nid_ins, "vitv", "Meridional wind", "m/s", |
---|
80 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
81 | . "ins(X)", zsto,zout) |
---|
82 | c |
---|
83 | CALL histdef(nid_ins, "vitw", "Vertical wind", "Pa/s", |
---|
84 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
85 | . "ins(X)", zsto,zout) |
---|
86 | c |
---|
87 | CALL histdef(nid_ins, "dudyn", "Dynamics dU", "m/s2", |
---|
88 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
89 | . "ins(X)", zsto,zout) |
---|
90 | c |
---|
91 | CALL histdef(nid_ins, "duvdf", "Boundary-layer dU", "m/s2", |
---|
92 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
93 | . "ins(X)", zsto,zout) |
---|
94 | c |
---|
95 | c CALL histdef(nid_ins, "mang", "Angular momentum", "kg m2/s", |
---|
96 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
97 | c . "ins(X)", zsto,zout) |
---|
98 | c |
---|
99 | c CALL histdef(nid_ins, "Kz", "vertical diffusion coef", "m2/s", |
---|
100 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
101 | c . "ins(X)", zsto,zout) |
---|
102 | c |
---|
103 | c plusieurs traceurs |
---|
104 | if (ok_chem) THEN |
---|
105 | DO iq=1,nqmax |
---|
106 | c DO iq=1,10 |
---|
107 | IF (iq.LE.99) THEN |
---|
108 | WRITE(str2,'(i2.2)') iq |
---|
109 | CALL histdef(nid_ins, tname(iq), ttext(iq), "mol/mol", |
---|
110 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
111 | . "ins(X)", zsto,zout) |
---|
112 | ELSE |
---|
113 | PRINT*, "Trop de traceurs" |
---|
114 | CALL abort |
---|
115 | ENDIF |
---|
116 | ENDDO |
---|
117 | CALL histdef(nid_mth, "d_qmoldif CO2", "Dif molec" , "kg/kg", |
---|
118 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
119 | . "ave(X)", zsto,zout) |
---|
120 | CALL histdef(nid_mth, "d_qmoldif O3p", "Dif molec" , "kg/kg", |
---|
121 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
122 | . "ave(X)", zsto,zout) |
---|
123 | CALL histdef(nid_mth, "d_qmoldif N2", "Dif molec" , "kg/kg", |
---|
124 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
125 | . "ave(X)", zsto,zout) |
---|
126 | |
---|
127 | endif |
---|
128 | c |
---|
129 | CALL histdef(nid_ins, "tops", "Solar rad. at TOA", "W/m2", |
---|
130 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
131 | . "ins(X)", zsto,zout) |
---|
132 | c |
---|
133 | if (ok_cloud) THEN |
---|
134 | |
---|
135 | if (nb_mode.GE.1) THEN |
---|
136 | |
---|
137 | c |
---|
138 | CALL histdef(nid_ins, "NBRTOTm1", "Nbr total droplet", |
---|
139 | . "#/cm3", iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
140 | . "ins(X)", zsto,zout) |
---|
141 | c |
---|
142 | |
---|
143 | c |
---|
144 | c CALL histdef(nid_ins, "R_MEDIANm1", "Median radius |
---|
145 | c . for log normal distribution" , |
---|
146 | c . "fraction", |
---|
147 | c . iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
148 | c . "ins(X)", zsto,zout) |
---|
149 | c |
---|
150 | |
---|
151 | c |
---|
152 | c CALL histdef(nid_ins, "STDDEVm1", "Std Deviation |
---|
153 | c . for log normal distribution", |
---|
154 | c . "fraction", |
---|
155 | c . iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
156 | c . "ins(X)", zsto,zout) |
---|
157 | c |
---|
158 | |
---|
159 | if (nb_mode.GE.2) THEN |
---|
160 | |
---|
161 | c |
---|
162 | CALL histdef(nid_ins, "NBRTOTm2", "Nbr total droplet", |
---|
163 | . "#/cm3", iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
164 | . "ins(X)", zsto,zout) |
---|
165 | c |
---|
166 | |
---|
167 | c |
---|
168 | c CALL histdef(nid_ins, "R_MEDIANm2", "Median radius |
---|
169 | c . for log normal distribution" , |
---|
170 | c . "fraction", |
---|
171 | c . iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
172 | c . "ins(X)", zsto,zout) |
---|
173 | c |
---|
174 | |
---|
175 | c |
---|
176 | c CALL histdef(nid_ins, "STDDEVm2", "Std Deviation |
---|
177 | c . for log normal distribution", |
---|
178 | c . "fraction", |
---|
179 | c . iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
180 | c . "ins(X)", zsto,zout) |
---|
181 | c |
---|
182 | |
---|
183 | if (nb_mode.GE.3) THEN |
---|
184 | |
---|
185 | c |
---|
186 | CALL histdef(nid_ins, "NBRTOTm3", "Nbr total droplet", "#/cm3", |
---|
187 | . iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
188 | . "ins(X)", zsto,zout) |
---|
189 | c |
---|
190 | |
---|
191 | c |
---|
192 | c CALL histdef(nid_ins, "R_MEDIANm3", "Median radius |
---|
193 | c . for log normal distribution" , |
---|
194 | c . "fraction", |
---|
195 | c . iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
196 | c . "ins(X)", zsto,zout) |
---|
197 | c |
---|
198 | |
---|
199 | c |
---|
200 | c CALL histdef(nid_ins, "STDDEVm3", "Std Deviation |
---|
201 | c . for log normal distribution", |
---|
202 | c . "fraction", |
---|
203 | c . iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
204 | c . "ins(X)", zsto,zout) |
---|
205 | c |
---|
206 | |
---|
207 | ENDIF |
---|
208 | ENDIF |
---|
209 | ENDIF |
---|
210 | |
---|
211 | c |
---|
212 | CALL histdef(nid_ins, "WH2SO4", "Weight fraction H2SO4", |
---|
213 | . "fraction", |
---|
214 | . iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
215 | . "ins(X)", zsto,zout) |
---|
216 | c |
---|
217 | |
---|
218 | c |
---|
219 | CALL histdef(nid_ins, "rho_droplet", "density cloud droplet", |
---|
220 | . "kg.m-3", |
---|
221 | . iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
222 | . "ins(X)", zsto,zout) |
---|
223 | c |
---|
224 | |
---|
225 | ENDIF |
---|
226 | |
---|
227 | if (ok_sedim) THEN |
---|
228 | c |
---|
229 | CALL histdef(nid_ins, "d_tr_sed_H2SO4", "var mmr from sedim", |
---|
230 | . "kg/kg", |
---|
231 | . iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
232 | . "ins(X)", zsto,zout) |
---|
233 | c |
---|
234 | |
---|
235 | c |
---|
236 | CALL histdef(nid_ins, "d_tr_sed_H2O", "var mmr from sedim", |
---|
237 | . "kg/kg", |
---|
238 | . iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
239 | . "ins(X)", zsto,zout) |
---|
240 | c |
---|
241 | |
---|
242 | c |
---|
243 | CALL histdef(nid_ins, "F_sedim", "tendency from sedim", |
---|
244 | . "kg.m-2.s-1", |
---|
245 | . iim,jj_nb,nhori, klev,1,klev, nvert, 32, |
---|
246 | . "ins(X)", zsto,zout) |
---|
247 | c |
---|
248 | ENDIF |
---|
249 | ENDIF !lev_histins.GE.2 |
---|
250 | c |
---|
251 | c------------------------------------------------------- |
---|
252 | IF(lev_histins.GE.3) THEN |
---|
253 | c |
---|
254 | cccccccccccccccccc Radiative transfer |
---|
255 | c |
---|
256 | c 2D |
---|
257 | c |
---|
258 | CALL histdef(nid_ins, "topl", "IR rad. at TOA", "W/m2", |
---|
259 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
260 | . "ins(X)", zsto,zout) |
---|
261 | c |
---|
262 | CALL histdef(nid_ins, "sols", "Solar rad. at surf.", "W/m2", |
---|
263 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
264 | . "ins(X)", zsto,zout) |
---|
265 | c |
---|
266 | CALL histdef(nid_ins, "soll", "IR rad. at surface", "W/m2", |
---|
267 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
268 | . "ins(X)", zsto,zout) |
---|
269 | c |
---|
270 | c 3D |
---|
271 | c |
---|
272 | CALL histdef(nid_ins, "SWnet", "Net SW flux","W/m2", |
---|
273 | . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
274 | . 32, "ins(X)", zsto,zout) |
---|
275 | c |
---|
276 | CALL histdef(nid_ins, "LWnet", "Net LW flux","W/m2", |
---|
277 | . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
278 | . 32, "ins(X)", zsto,zout) |
---|
279 | c |
---|
280 | CALL histdef(nid_ins, "fluxvdf", "PBL net flux","W/m2", |
---|
281 | . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
282 | . 32, "ins(X)", zsto,zout) |
---|
283 | c |
---|
284 | CALL histdef(nid_ins, "fluxdyn", "Dyn. net flux","W/m2", |
---|
285 | . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
286 | . 32, "ins(X)", zsto,zout) |
---|
287 | c |
---|
288 | CALL histdef(nid_ins, "fluxajs", "Dry adj. net flux","W/m2", |
---|
289 | . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
290 | . 32, "ins(X)", zsto,zout) |
---|
291 | c |
---|
292 | c CALL histdef(nid_ins, "fluxec", "Cin. net flux","W/m2", |
---|
293 | c . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
294 | c . 32, "ins(X)", zsto,zout) |
---|
295 | c |
---|
296 | ENDIF !lev_histins.GE.3 |
---|
297 | c |
---|
298 | c------------------------------------------------------- |
---|
299 | IF(lev_histins.GE.4) THEN |
---|
300 | c |
---|
301 | CALL histdef(nid_ins, "dtdyn", "Dynamics dT", "K/s", |
---|
302 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
303 | . "ins(X)", zsto,zout) |
---|
304 | c |
---|
305 | c CALL histdef(nid_ins, "dtphy", "Physics dT", "K/s", |
---|
306 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
307 | c . "ins(X)", zsto,zout) |
---|
308 | c |
---|
309 | CALL histdef(nid_ins, "dtvdf", "Boundary-layer dT", "K/s", |
---|
310 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
311 | . "ins(X)", zsto,zout) |
---|
312 | c |
---|
313 | CALL histdef(nid_ins, "dtajs", "Dry adjust. dT", "K/s", |
---|
314 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
315 | . "ins(X)", zsto,zout) |
---|
316 | c |
---|
317 | CALL histdef(nid_ins, "dtswr", "SW radiation dT", "K/s", |
---|
318 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
319 | . "ins(X)", zsto,zout) |
---|
320 | c |
---|
321 | CALL histdef(nid_ins, "dtlwr", "LW radiation dT", "K/s", |
---|
322 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
323 | . "ins(X)", zsto,zout) |
---|
324 | c |
---|
325 | c CALL histdef(nid_ins, "dtec", "Cinetic dissip dT", "K/s", |
---|
326 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
327 | c . "ins(X)", zsto,zout) |
---|
328 | c |
---|
329 | CALL histdef(nid_ins, "duajs", "Dry convection dU", "m/s2", |
---|
330 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
331 | . "ins(X)", zsto,zout) |
---|
332 | c |
---|
333 | CALL histdef(nid_ins, "dugwo", "GW oro dU", "m/s2", |
---|
334 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
335 | . "ins(X)", zsto,zout) |
---|
336 | c |
---|
337 | CALL histdef(nid_ins, "dugwno", "GW non-oro dU", "m/s2", |
---|
338 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
339 | . "ins(X)", zsto,zout) |
---|
340 | c |
---|
341 | c CALL histdef(nid_ins, "dvvdf", "Boundary-layer dV", "m/s2", |
---|
342 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
343 | c . "ins(X)", zsto,zout) |
---|
344 | c |
---|
345 | ENDIF !lev_histins.GE.4 |
---|
346 | c |
---|
347 | c------------------------------------------------------- |
---|
348 | IF(lev_histins.GE.5) THEN |
---|
349 | c |
---|
350 | c call histdef(nid_ins, "taux", |
---|
351 | c $ "Zonal wind stress", "Pa", |
---|
352 | c $ iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
353 | c $ "ins(X)", zsto,zout) |
---|
354 | c |
---|
355 | c call histdef(nid_ins, "tauy", |
---|
356 | c $ "Meridional xind stress", "Pa", |
---|
357 | c $ iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
358 | c $ "ins(X)", zsto,zout) |
---|
359 | c |
---|
360 | c CALL histdef(nid_ins, "cdrm", "Momentum drag coef.", "-", |
---|
361 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
362 | c . "ins(X)", zsto,zout) |
---|
363 | c |
---|
364 | c CALL histdef(nid_ins, "cdrh", "Heat drag coef.", "-", |
---|
365 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
366 | c . "ins(X)", zsto,zout) |
---|
367 | c |
---|
368 | ENDIF !lev_histins.GE.5 |
---|
369 | c------------------------------------------------------- |
---|
370 | c |
---|
371 | CALL histend(nid_ins) |
---|
372 | !$OMP END MASTER |
---|
373 | |
---|
374 | ENDIF |
---|