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