1 | c |
---|
2 | c $Header$ |
---|
3 | c |
---|
4 | if (ok_journe) THEN |
---|
5 | c |
---|
6 | ndex2d = 0 |
---|
7 | ndex3d = 0 |
---|
8 | c |
---|
9 | c Champs 2D: |
---|
10 | c |
---|
11 | itau_w = itau_phy + itap |
---|
12 | |
---|
13 | c |
---|
14 | IF(lev_histday.GE.1) THEN |
---|
15 | c |
---|
16 | CALL histwrite_phy(nid_day,"phis",itau_w,pphis) |
---|
17 | |
---|
18 | c |
---|
19 | CALL histwrite_phy(nid_day,"aire",itau_w,airephy) |
---|
20 | c |
---|
21 | DO i=1, klon |
---|
22 | zx_tmp_fi2d(i)=pctsrf(i,is_ter)+pctsrf(i,is_lic) |
---|
23 | ENDDO |
---|
24 | c |
---|
25 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
26 | CALL histwrite_phy(nid_day,"contfracATM",itau_w,zx_tmp_fi2d) |
---|
27 | c |
---|
28 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,pctsrf_new(:,is_ter),zx_tmp_2d) |
---|
29 | CALL histwrite_phy(nid_day,"contfracOR",itau_w, |
---|
30 | & pctsrf_new(:,is_ter)) |
---|
31 | c |
---|
32 | |
---|
33 | CALL histwrite_phy(nid_day,"dthmin",itau_w,dthmin) |
---|
34 | CALL histwrite_phy(nid_day,"weakinv",itau_w,weak_inversion) |
---|
35 | |
---|
36 | |
---|
37 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxtsol,zx_tmp_2d) |
---|
38 | CALL histwrite_phy(nid_day,"tsol",itau_w,zxtsol) |
---|
39 | C |
---|
40 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
41 | CALL histwrite_phy(nid_day,"t2m",itau_w,zt2m) |
---|
42 | c |
---|
43 | c En attendant un eventuel debugage. |
---|
44 | |
---|
45 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
46 | CALL histwrite_phy(nid_day,"t2m_min",itau_w,zt2m) |
---|
47 | c |
---|
48 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
49 | CALL histwrite_phy(nid_day,"t2m_max",itau_w,zt2m) |
---|
50 | c |
---|
51 | DO i = 1, klon |
---|
52 | zx_tmp_fi2d(i) = rain_lsc(i) + snow_lsc(i) |
---|
53 | ENDDO |
---|
54 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
55 | CALL histwrite_phy(nid_day,"plul",itau_w,zx_tmp_fi2d) |
---|
56 | c |
---|
57 | DO i = 1, klon |
---|
58 | zx_tmp_fi2d(i) = rain_con(i) + snow_con(i) |
---|
59 | ENDDO |
---|
60 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
61 | CALL histwrite_phy(nid_day,"pluc",itau_w,zx_tmp_fi2d) |
---|
62 | c |
---|
63 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_lsc,zx_tmp_2d) |
---|
64 | CALL histwrite_phy(nid_day,"snowl",itau_w,snow_lsc) |
---|
65 | c |
---|
66 | IF(1.EQ.0) THEN |
---|
67 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_con,zx_tmp_2d) |
---|
68 | CALL histwrite_phy(nid_day,"snowc",itau_w,snow_con) |
---|
69 | ENDIF |
---|
70 | c |
---|
71 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxfluxlat,zx_tmp_2d) |
---|
72 | CALL histwrite_phy(nid_day,"flat",itau_w,zxfluxlat) |
---|
73 | c |
---|
74 | DO i = 1, klon |
---|
75 | zx_tmp_fi2d(i) = pctsrf(i,is_sic) |
---|
76 | ENDDO |
---|
77 | c |
---|
78 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
79 | CALL histwrite_phy(nid_day,"sicf",itau_w,zx_tmp_fi2d) |
---|
80 | c |
---|
81 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zq2m,zx_tmp_2d) |
---|
82 | CALL histwrite_phy(nid_day,"q2m",itau_w,zq2m) |
---|
83 | c |
---|
84 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zu10m,zx_tmp_2d) |
---|
85 | CALL histwrite_phy(nid_day,"u10m",itau_w,zu10m) |
---|
86 | c |
---|
87 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zv10m,zx_tmp_2d) |
---|
88 | CALL histwrite_phy(nid_day,"v10m",itau_w,zv10m) |
---|
89 | c |
---|
90 | DO i=1, klon |
---|
91 | zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i)) |
---|
92 | ENDDO |
---|
93 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
94 | CALL histwrite_phy(nid_day,"wind10m",itau_w,zx_tmp_fi2d) |
---|
95 | c |
---|
96 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
97 | CALL histwrite_phy(nid_day,"wind10max",itau_w,zx_tmp_fi2d) |
---|
98 | c |
---|
99 | DO i=1, klon |
---|
100 | zx_tmp_fi2d(i) = paprs(i,1) |
---|
101 | ENDDO |
---|
102 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
103 | CALL histwrite_phy(nid_day,"psol",itau_w,zx_tmp_fi2d) |
---|
104 | c |
---|
105 | DO i=1, klon |
---|
106 | zx_tmp_fi2d(i) = (rain_fall(i) + snow_fall(i)) |
---|
107 | ENDDO |
---|
108 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
109 | CALL histwrite_phy(nid_day,"precip",itau_w,zx_tmp_fi2d) |
---|
110 | c |
---|
111 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_fall,zx_tmp_2d) |
---|
112 | CALL histwrite_phy(nid_day,"snowf",itau_w,snow_fall) |
---|
113 | c |
---|
114 | cIM: 140404 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxsnow,zx_tmp_2d) |
---|
115 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zsnow_mass,zx_tmp_2d) |
---|
116 | c CALL histwrite(nid_day,"snow_mass",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
117 | c . ndex2d) |
---|
118 | c |
---|
119 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, evap,zx_tmp_2d) |
---|
120 | CALL histwrite_phy(nid_day,"evap",itau_w,evap) |
---|
121 | c |
---|
122 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw,zx_tmp_2d) |
---|
123 | CALL histwrite_phy(nid_day,"tops",itau_w,topsw) |
---|
124 | c |
---|
125 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw,zx_tmp_2d) |
---|
126 | CALL histwrite_phy(nid_day,"topl",itau_w,toplw) |
---|
127 | c |
---|
128 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw,zx_tmp_2d) |
---|
129 | CALL histwrite_phy(nid_day,"sols",itau_w,solsw) |
---|
130 | c |
---|
131 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw,zx_tmp_2d) |
---|
132 | CALL histwrite_phy(nid_day,"soll",itau_w,sollw) |
---|
133 | c |
---|
134 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, radsol,zx_tmp_2d) |
---|
135 | CALL histwrite_phy(nid_day,"radsol",itau_w,radsol) |
---|
136 | c |
---|
137 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldl,zx_tmp_2d) |
---|
138 | CALL histwrite_phy(nid_day,"cldl",itau_w,cldl) |
---|
139 | c |
---|
140 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldm,zx_tmp_2d) |
---|
141 | CALL histwrite_phy(nid_day,"cldm",itau_w,cldm) |
---|
142 | c |
---|
143 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldh,zx_tmp_2d) |
---|
144 | CALL histwrite_phy(nid_day,"cldh",itau_w,cldh) |
---|
145 | c |
---|
146 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldt,zx_tmp_2d) |
---|
147 | CALL histwrite_phy(nid_day,"cldt",itau_w,cldt) |
---|
148 | c |
---|
149 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldq,zx_tmp_2d) |
---|
150 | CALL histwrite_phy(nid_day,"cldq",itau_w,cldq) |
---|
151 | c |
---|
152 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, prw,zx_tmp_2d) |
---|
153 | CALL histwrite_phy(nid_day,"prw",itau_w,prw) |
---|
154 | |
---|
155 | c Ecriture de champs dynamiques sur des niveaux de pression |
---|
156 | c DO k=1, nlevENS |
---|
157 | DO k=1, nlevSTD |
---|
158 | c |
---|
159 | c bb=clevSTD(k) |
---|
160 | c |
---|
161 | IF(k.GE.2.AND.k.LE.12) bb2=clevSTD(k) |
---|
162 | IF(k.GE.13.AND.k.LE.17) bb3=clevSTD(k) |
---|
163 | c aa=clevSTD(k) |
---|
164 | c bb=aa(1:lnblnk1(aa)) |
---|
165 | c ENDIF |
---|
166 | c |
---|
167 | IF(bb2.EQ."850".OR.bb2.EQ."700" |
---|
168 | $ .OR.bb2.EQ."500".OR.bb2.EQ."200") THEN |
---|
169 | c |
---|
170 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,usumSTD(:,k,1),zx_tmp_2d) |
---|
171 | CALL histwrite_phy(nid_day,"u"//bb2,itau_w,usumSTD(:,k,1)) |
---|
172 | c |
---|
173 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,vsumSTD(:,k,1),zx_tmp_2d) |
---|
174 | CALL histwrite_phy(nid_day,"v"//bb2,itau_w,vsumSTD(:,k,1)) |
---|
175 | c |
---|
176 | ENDIF !(bb2.EQ."850".OR.bb2.EQ."700".OR.bb2.EQ."500".OR.bb2.EQ."200") THEN |
---|
177 | c |
---|
178 | c w500 |
---|
179 | c |
---|
180 | IF(bb2.EQ."500") THEN |
---|
181 | c |
---|
182 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,wsumSTD(:,k,1),zx_tmp_2d) |
---|
183 | CALL histwrite_phy(nid_day,"w"//bb2,itau_w,wsumSTD(:,k,1)) |
---|
184 | c |
---|
185 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,phisumSTD(:,k,1),zx_tmp_2d) |
---|
186 | CALL histwrite_phy(nid_day,"phi"//bb2,itau_w,phisumSTD(:,k,1)) |
---|
187 | |
---|
188 | ENDIF !(bb2.EQ."500") THEN |
---|
189 | c |
---|
190 | ENDDO !nlevSTD |
---|
191 | c |
---|
192 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, slp,zx_tmp_2d) |
---|
193 | CALL histwrite_phy(nid_day,"slp",itau_w,slp) |
---|
194 | |
---|
195 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,cape,zx_tmp_2d) |
---|
196 | CALL histwrite_phy(nid_day,"cape_max",itau_w,cape) |
---|
197 | c |
---|
198 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
199 | CALL histwrite_phy(nid_day,"solldown",itau_w,sollwdown) |
---|
200 | c |
---|
201 | DO i=1, klon |
---|
202 | zx_tmp_fi2d(i)=-1*sens(i) |
---|
203 | ENDDO |
---|
204 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
205 | CALL histwrite_phy(nid_day,"sens",itau_w,zx_tmp_fi2d) |
---|
206 | c |
---|
207 | zx_tmp_fi2d(1 : klon) = swdn(1 : klon, 1) |
---|
208 | |
---|
209 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
210 | CALL histwrite_phy(nid_day, "SWdnSFC",itau_w,zx_tmp_fi2d) |
---|
211 | c |
---|
212 | IF (OCEAN.EQ.'force ') THEN |
---|
213 | c |
---|
214 | DO i=1, klon |
---|
215 | IF((pctsrf(i,is_oce).GT.epsfra).OR. |
---|
216 | . (pctsrf(i,is_sic).GT.epsfra)) THEN |
---|
217 | zx_tmp_fi2d(i) = (radsol(i) + fluxo(i))*pctsrf(i,is_oce)+ |
---|
218 | . fluxg(i)*pctsrf(i,is_sic) |
---|
219 | ELSE |
---|
220 | zx_tmp_fi2d(i) = 1.E+20 |
---|
221 | ENDIF |
---|
222 | ENDDO |
---|
223 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
224 | CALL histwrite_phy(nid_day,"lmt_bils",itau_w, zx_tmp_fi2d) |
---|
225 | c |
---|
226 | ELSE IF (OCEAN.EQ.'slab ') THEN |
---|
227 | c |
---|
228 | DO i=1, klon |
---|
229 | IF((pctsrf(i,is_oce).GT.epsfra).OR. |
---|
230 | . (pctsrf(i,is_sic).GT.epsfra)) THEN |
---|
231 | zx_tmp_fi2d(i) = (radsol(i) + fluxo(i))*pctsrf(i,is_oce)+ |
---|
232 | . fluxg(i)*pctsrf(i,is_sic) |
---|
233 | ELSE |
---|
234 | zx_tmp_fi2d(i) = 1.E+20 |
---|
235 | ENDIF |
---|
236 | ENDDO |
---|
237 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
238 | CALL histwrite_phy(nid_day,"slab_bils",itau_w,zx_tmp_fi2d) |
---|
239 | c |
---|
240 | DO i=1, klon |
---|
241 | IF(pctsrf(i,is_oce).GT.epsfra.OR. |
---|
242 | $ pctsrf(i,is_sic).GT.epsfra) THEN |
---|
243 | zx_tmp_fi2d(i)=tslab(i) |
---|
244 | ELSE |
---|
245 | zx_tmp_fi2d(i) = 1.E+20 |
---|
246 | ENDIF |
---|
247 | ENDDO !i=1, klon |
---|
248 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
249 | CALL histwrite_phy(nid_day,"tslab",itau_w,zx_tmp_fi2d) |
---|
250 | c |
---|
251 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, seaice,zx_tmp_2d) |
---|
252 | CALL histwrite_phy(nid_day,"seaice",itau_w,seaice) |
---|
253 | c |
---|
254 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, seaice/1000.,zx_tmp_2d) |
---|
255 | CALL histwrite_phy(nid_day,"siceh",itau_w,seaice/1000.) |
---|
256 | c |
---|
257 | ENDIF !(OCEAN.EQ.'slab ') THEN |
---|
258 | c |
---|
259 | DO i=1, klon |
---|
260 | IF (pctsrf(i,is_oce).GT.epsfra) THEN |
---|
261 | zx_tmp_fi2d(i) = fluxo(i) |
---|
262 | ELSE |
---|
263 | zx_tmp_fi2d(i) = 0. |
---|
264 | ENDIF |
---|
265 | ENDDO |
---|
266 | c |
---|
267 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
268 | CALL histwrite_phy(nid_day,"fluxo",itau_w,zx_tmp_fi2d) |
---|
269 | c |
---|
270 | DO i=1, klon |
---|
271 | IF (pctsrf(i,is_sic).GT.epsfra) THEN |
---|
272 | zx_tmp_fi2d(i) = fluxg(i) |
---|
273 | ELSE |
---|
274 | zx_tmp_fi2d(i) = 0. |
---|
275 | ENDIF |
---|
276 | ENDDO |
---|
277 | c |
---|
278 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
279 | CALL histwrite_phy(nid_day,"fluxg",itau_w,zx_tmp_fi2d) |
---|
280 | c |
---|
281 | ENDIF !lev_histday.GE.1 |
---|
282 | c |
---|
283 | IF(lev_histday.GE.2) THEN |
---|
284 | c |
---|
285 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, bils,zx_tmp_2d) |
---|
286 | CALL histwrite_phy(nid_day,"bils",itau_w, bils) |
---|
287 | c |
---|
288 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, fder,zx_tmp_2d) |
---|
289 | CALL histwrite_phy(nid_day,"fder",itau_w,fder) |
---|
290 | c |
---|
291 | ENDIF !lev_histday.GE.2 |
---|
292 | c |
---|
293 | IF(lev_histday.GE.3) THEN |
---|
294 | c================================================================= |
---|
295 | c ECRITURE DES CHAMPS 3D |
---|
296 | c================================================================= |
---|
297 | |
---|
298 | c |
---|
299 | c Champs 3D: |
---|
300 | c |
---|
301 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d) |
---|
302 | CALL histwrite_phy(nid_day,"temp",itau_w,t_seri) |
---|
303 | c |
---|
304 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, qx(1,1,ivap), zx_tmp_3d) |
---|
305 | CALL histwrite_phy(nid_day,"ovap",itau_w,qx(:,:,ivap)) |
---|
306 | c |
---|
307 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zphi, zx_tmp_3d) |
---|
308 | CALL histwrite_phy(nid_day,"geop",itau_w,zphi) |
---|
309 | c |
---|
310 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, u_seri, zx_tmp_3d) |
---|
311 | CALL histwrite_phy(nid_day,"vitu",itau_w,u_seri) |
---|
312 | c |
---|
313 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, v_seri, zx_tmp_3d) |
---|
314 | CALL histwrite_phy(nid_day,"vitv",itau_w,v_seri) |
---|
315 | c |
---|
316 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, omega, zx_tmp_3d) |
---|
317 | CALL histwrite_phy(nid_day,"vitw",itau_w,omega) |
---|
318 | c |
---|
319 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, pplay, zx_tmp_3d) |
---|
320 | CALL histwrite_phy(nid_day,"pres",itau_w,pplay) |
---|
321 | c |
---|
322 | ENDIF !lev_histday.GE.3 |
---|
323 | c================================================================= |
---|
324 | c FIN ECRITURE DES CHAMPS 3D |
---|
325 | c================================================================= |
---|
326 | IF(lev_histday.ge.4) THEN |
---|
327 | c================================================================= |
---|
328 | c |
---|
329 | c ECRITURE DES CHAMPS SUR LES SOUS SURFACES |
---|
330 | c |
---|
331 | c================================================================= |
---|
332 | zx_tmp_fi2d(1 : klon) = swup( 1 : klon, klevp1 ) |
---|
333 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
334 | CALL histwrite_phy(nid_day, "SWupTOA",itau_w,zx_tmp_fi2d) |
---|
335 | c |
---|
336 | zx_tmp_fi2d(1 : klon) = swup( 1 : klon, 1 ) |
---|
337 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
338 | CALL histwrite_phy(nid_day, "SWupSFC",itau_w,zx_tmp_fi2d) |
---|
339 | c |
---|
340 | zx_tmp_fi2d(1 : klon) = swdn( 1 : klon, klevp1 ) |
---|
341 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
342 | CALL histwrite_phy(nid_day, "SWdnTOA",itau_w,zx_tmp_fi2d) |
---|
343 | c |
---|
344 | zx_tmp_fi2d(1 : klon) = swup0( 1 : klon, klevp1 ) |
---|
345 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
346 | CALL histwrite_phy(nid_day, "SWupTOAclr",itau_w,zx_tmp_fi2d) |
---|
347 | c |
---|
348 | zx_tmp_fi2d(1 : klon) = swup0( 1 : klon, 1 ) |
---|
349 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
350 | CALL histwrite_phy(nid_day, "SWupSFCclr",itau_w,zx_tmp_fi2d) |
---|
351 | c |
---|
352 | zx_tmp_fi2d(1 : klon) = swdn0( 1 : klon, klevp1 ) |
---|
353 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
354 | CALL histwrite_phy(nid_day, "SWdnTOAclr",itau_w,zx_tmp_fi2d) |
---|
355 | c |
---|
356 | zx_tmp_fi2d(1 : klon) = swdn0( 1 : klon, 1 ) |
---|
357 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
358 | CALL histwrite_phy(nid_day, "SWdnSFCclr",itau_w,zx_tmp_fi2d) |
---|
359 | c |
---|
360 | cIM AMMA-MIP |
---|
361 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
362 | CALL histwrite_phy(nid_day,"LWdnSFC",itau_w,sollwdown) |
---|
363 | c |
---|
364 | zx_tmp_fi2d(1:klon)=sollwdown(1:klon)-sollw(1:klon) |
---|
365 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
366 | CALL histwrite_phy(nid_day,"LWupSFC",itau_w,zx_tmp_fi2d) |
---|
367 | c |
---|
368 | cIM IF (iflag_con.GE.3) THEN |
---|
369 | cIM ema_pct= 0. CALL gr_fi_ecrit(1, klon,iim,jjmp1, ema_pct,zx_tmp_2d) |
---|
370 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, meanptop(:,1),zx_tmp_2d) |
---|
371 | CALL histwrite_phy(nid_day,"ptop",itau_w,meanptop(:,1)) |
---|
372 | cIM ENDIF |
---|
373 | c |
---|
374 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_ter) |
---|
375 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d ,zx_tmp_2d) |
---|
376 | CALL histwrite_phy(nid_day,"tter",itau_w,zx_tmp_fi2d) |
---|
377 | c |
---|
378 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_lic) |
---|
379 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
380 | CALL histwrite_phy(nid_day,"tlic",itau_w,zx_tmp_fi2d) |
---|
381 | c |
---|
382 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_oce) |
---|
383 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
384 | CALL histwrite_phy(nid_day,"toce",itau_w,zx_tmp_fi2d) |
---|
385 | c |
---|
386 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_sic) |
---|
387 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
388 | CALL histwrite_phy(nid_day,"tsic",itau_w,zx_tmp_fi2d) |
---|
389 | c |
---|
390 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_ter) |
---|
391 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
392 | CALL histwrite_phy(nid_day,"t2mter",itau_w,zx_tmp_fi2d) |
---|
393 | c |
---|
394 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_ter) |
---|
395 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
396 | CALL histwrite_phy(nid_day,"t2mter_min",itau_w,zx_tmp_fi2d) |
---|
397 | c |
---|
398 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_ter) |
---|
399 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
400 | CALL histwrite_phy(nid_day,"t2mter_max",itau_w,zx_tmp_fi2d) |
---|
401 | c |
---|
402 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_lic) |
---|
403 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
404 | CALL histwrite_phy(nid_day,"t2mlic",itau_w,zx_tmp_fi2d) |
---|
405 | c |
---|
406 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_oce) |
---|
407 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
408 | CALL histwrite_phy(nid_day,"t2moce",itau_w,zx_tmp_fi2d) |
---|
409 | c |
---|
410 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_sic) |
---|
411 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
412 | CALL histwrite_phy(nid_day,"t2msic",itau_w,zx_tmp_fi2d) |
---|
413 | c |
---|
414 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_ter) |
---|
415 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
416 | CALL histwrite_phy(nid_day,"u10mter",itau_w,zx_tmp_fi2d) |
---|
417 | c |
---|
418 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_ter) |
---|
419 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
420 | CALL histwrite_phy(nid_day,"v10mter",itau_w,zx_tmp_fi2d) |
---|
421 | c |
---|
422 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_lic) |
---|
423 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
424 | CALL histwrite_phy(nid_day,"u10mlic",itau_w,zx_tmp_fi2d) |
---|
425 | c |
---|
426 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_lic) |
---|
427 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
428 | CALL histwrite_phy(nid_day,"v10mlic",itau_w,zx_tmp_fi2d) |
---|
429 | c |
---|
430 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_oce) |
---|
431 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
432 | CALL histwrite_phy(nid_day,"u10moce",itau_w,zx_tmp_fi2d) |
---|
433 | c |
---|
434 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_oce) |
---|
435 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
436 | CALL histwrite_phy(nid_day,"v10moce",itau_w,zx_tmp_fi2d) |
---|
437 | c |
---|
438 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_sic) |
---|
439 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
440 | CALL histwrite_phy(nid_day,"u10msic",itau_w,zx_tmp_fi2d) |
---|
441 | C |
---|
442 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_sic) |
---|
443 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
444 | CALL histwrite_phy(nid_day,"v10msic",itau_w,zx_tmp_fi2d) |
---|
445 | C |
---|
446 | DO nsrf = 1, nbsrf |
---|
447 | C |
---|
448 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf)*100. |
---|
449 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
450 | CALL histwrite_phy(nid_day,"pourc_"//clnsurf(nsrf),itau_w, |
---|
451 | & zx_tmp_fi2d) |
---|
452 | C |
---|
453 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf) |
---|
454 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
455 | CALL histwrite_phy(nid_day,"fract_"//clnsurf(nsrf),itau_w, |
---|
456 | & zx_tmp_fi2d) |
---|
457 | C |
---|
458 | zx_tmp_fi2d(1 : klon) = ftsol( 1 : klon, nsrf) |
---|
459 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
460 | CALL histwrite_phy(nid_day,"tsol_"//clnsurf(nsrf),itau_w, |
---|
461 | $ zx_tmp_fi2d) |
---|
462 | C |
---|
463 | zx_tmp_fi2d(1 : klon) = fluxt( 1 : klon, 1, nsrf) |
---|
464 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
465 | CALL histwrite_phy(nid_day,"sens_"//clnsurf(nsrf),itau_w, |
---|
466 | $ zx_tmp_fi2d) |
---|
467 | C |
---|
468 | zx_tmp_fi2d(1 : klon) = fluxlat( 1 : klon, nsrf) |
---|
469 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
470 | CALL histwrite_phy(nid_day,"lat_"//clnsurf(nsrf),itau_w, |
---|
471 | $ zx_tmp_fi2d) |
---|
472 | C |
---|
473 | zx_tmp_fi2d(1 : klon) = fluxu( 1 : klon, 1, nsrf) |
---|
474 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
475 | CALL histwrite_phy(nid_day,"taux_"//clnsurf(nsrf),itau_w, |
---|
476 | $ zx_tmp_fi2d) |
---|
477 | C |
---|
478 | zx_tmp_fi2d(1 : klon) = fluxv( 1 : klon, 1, nsrf) |
---|
479 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
480 | CALL histwrite_phy(nid_day,"tauy_"//clnsurf(nsrf),itau_w, |
---|
481 | $ zx_tmp_fi2d) |
---|
482 | C |
---|
483 | zx_tmp_fi2d(1 : klon) = falbe( 1 : klon, nsrf) |
---|
484 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
485 | CALL histwrite_phy(nid_day,"albe_"//clnsurf(nsrf),itau_w, |
---|
486 | $ zx_tmp_fi2d) |
---|
487 | C |
---|
488 | zx_tmp_fi2d(1 : klon) = frugs( 1 : klon, nsrf) |
---|
489 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
490 | CALL histwrite_phy(nid_day,"rugs_"//clnsurf(nsrf),itau_w, |
---|
491 | $ zx_tmp_fi2d) |
---|
492 | C |
---|
493 | END DO |
---|
494 | c================================================================= |
---|
495 | c FIN ECRITURE DES CHAMPS SUR LES SOUS SURFACES |
---|
496 | c================================================================= |
---|
497 | ENDIF !lev_histday.GE.4 |
---|
498 | c |
---|
499 | IF(lev_histday.GE.5) THEN !lev_histday.GE.5 |
---|
500 | c |
---|
501 | c rajout sorties F. Aires |
---|
502 | c |
---|
503 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw0,zx_tmp_2d) |
---|
504 | CALL histwrite_phy(nid_day,"tops0",itau_w,topsw0) |
---|
505 | c |
---|
506 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw0,zx_tmp_2d) |
---|
507 | CALL histwrite_phy(nid_day,"topl0",itau_w,toplw0) |
---|
508 | c |
---|
509 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw0,zx_tmp_2d) |
---|
510 | CALL histwrite_phy(nid_day,"sols0",itau_w,solsw0) |
---|
511 | c |
---|
512 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw0,zx_tmp_2d) |
---|
513 | CALL histwrite_phy(nid_day,"soll0",itau_w, sollw0) |
---|
514 | c |
---|
515 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldfra, zx_tmp_3d) |
---|
516 | CALL histwrite_phy(nid_day,"rneb",itau_w,cldfra) |
---|
517 | c |
---|
518 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, rnebcon, zx_tmp_3d) |
---|
519 | CALL histwrite_phy(nid_day,"rnebcon",itau_w,rnebcon) |
---|
520 | c |
---|
521 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, flwc,zx_tmp_3d) |
---|
522 | CALL histwrite_phy(nid_day,"lwcon",itau_w,flwc) |
---|
523 | c |
---|
524 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, fiwc,zx_tmp_3d) |
---|
525 | CALL histwrite_phy(nid_day,"iwcon",itau_w,fiwc) |
---|
526 | c |
---|
527 | zx_tmp_fi2d(1:klon) = flwp(1:klon) |
---|
528 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
529 | CALL histwrite_phy(nid_day,"lwp",itau_w,zx_tmp_fi2d) |
---|
530 | c |
---|
531 | zx_tmp_fi2d(1:klon) = fiwp(1:klon) |
---|
532 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
533 | CALL histwrite_phy(nid_day,"iwp",itau_w,zx_tmp_fi2d) |
---|
534 | c |
---|
535 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, meantaucld,zx_tmp_2d) |
---|
536 | CALL histwrite_phy(nid_day,"meantaucld",itau_w,meantaucld) |
---|
537 | c |
---|
538 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldtau,zx_tmp_3d) |
---|
539 | CALL histwrite_phy(nid_day,"cldtau",itau_w,cldtau) |
---|
540 | c |
---|
541 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldemi,zx_tmp_3d) |
---|
542 | CALL histwrite_phy(nid_day,"cldemi",itau_w,cldemi) |
---|
543 | c |
---|
544 | c |
---|
545 | cIM: 101003 : K/30min ==> K/s |
---|
546 | zx_tmp_fi3d(1:klon,1:klev)=d_t_con(1:klon,1:klev)/pdtphys |
---|
547 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
548 | CALL histwrite_phy(nid_day,"dtcon",itau_w,zx_tmp_fi3d) |
---|
549 | c |
---|
550 | zx_tmp_fi3d(1:klon,1:klev)=d_q_con(1:klon,1:klev)/pdtphys |
---|
551 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
552 | CALL histwrite_phy(nid_day,"dqcon",itau_w,zx_tmp_fi3d) |
---|
553 | c |
---|
554 | DO i=1, klon |
---|
555 | zx_tmp_fi2d(i)=MIN(100.,rh2m(i)*100.) |
---|
556 | ENDDO |
---|
557 | c |
---|
558 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, zx_tmp_2d,zx_tmp_2d) |
---|
559 | CALL histwrite_phy(nid_day,"rh2m",itau_w,zx_tmp_fi2d) |
---|
560 | c |
---|
561 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, qsat2m,zx_tmp_2d) |
---|
562 | CALL histwrite_phy(nid_day,"qsat2m",itau_w,qsat2m) |
---|
563 | c |
---|
564 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, tpot,zx_tmp_2d) |
---|
565 | CALL histwrite_phy(nid_day,"tpot",itau_w,tpot) |
---|
566 | c |
---|
567 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, tpote,zx_tmp_2d) |
---|
568 | CALL histwrite_phy(nid_day,"tpote",itau_w,tpote) |
---|
569 | c |
---|
570 | ENDIF !lev_histday.GE.5 |
---|
571 | c================================================================= |
---|
572 | c================================================================= |
---|
573 | c================================================================= |
---|
574 | c |
---|
575 | if (ok_sync) then |
---|
576 | c$OMP MASTER |
---|
577 | call histsync(nid_day) |
---|
578 | c$OMP END MASTER |
---|
579 | endif |
---|
580 | |
---|
581 | ENDIF |
---|