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 | DO i=1, klon |
---|
287 | zx_tmp_fi2d(i)=MIN(100.,rh2m(i)*100.) |
---|
288 | ENDDO |
---|
289 | c |
---|
290 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, zx_tmp_2d,zx_tmp_2d) |
---|
291 | CALL histwrite_phy(nid_day,"rh2m",itau_w,zx_tmp_fi2d) |
---|
292 | zx_tmp_fi2d(1 : klon) = swup( 1 : klon, klevp1 ) |
---|
293 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
294 | CALL histwrite_phy(nid_day, "SWupTOA",itau_w,zx_tmp_fi2d) |
---|
295 | c |
---|
296 | zx_tmp_fi2d(1 : klon) = swup( 1 : klon, 1 ) |
---|
297 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
298 | CALL histwrite_phy(nid_day, "SWupSFC",itau_w,zx_tmp_fi2d) |
---|
299 | c |
---|
300 | zx_tmp_fi2d(1 : klon) = swdn( 1 : klon, klevp1 ) |
---|
301 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
302 | CALL histwrite_phy(nid_day, "SWdnTOA",itau_w,zx_tmp_fi2d) |
---|
303 | c |
---|
304 | zx_tmp_fi2d(1 : klon) = swup0( 1 : klon, klevp1 ) |
---|
305 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
306 | CALL histwrite_phy(nid_day, "SWupTOAclr",itau_w,zx_tmp_fi2d) |
---|
307 | c |
---|
308 | zx_tmp_fi2d(1 : klon) = swup0( 1 : klon, 1 ) |
---|
309 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
310 | CALL histwrite_phy(nid_day, "SWupSFCclr",itau_w,zx_tmp_fi2d) |
---|
311 | c |
---|
312 | zx_tmp_fi2d(1 : klon) = swdn0( 1 : klon, klevp1 ) |
---|
313 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
314 | CALL histwrite_phy(nid_day, "SWdnTOAclr",itau_w,zx_tmp_fi2d) |
---|
315 | c |
---|
316 | zx_tmp_fi2d(1 : klon) = swdn0( 1 : klon, 1 ) |
---|
317 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
318 | CALL histwrite_phy(nid_day, "SWdnSFCclr",itau_w,zx_tmp_fi2d) |
---|
319 | c |
---|
320 | cIM AMMA-MIP |
---|
321 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
322 | CALL histwrite_phy(nid_day,"LWdnSFC",itau_w,sollwdown) |
---|
323 | c |
---|
324 | zx_tmp_fi2d(1:klon)=sollwdown(1:klon)-sollw(1:klon) |
---|
325 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
326 | CALL histwrite_phy(nid_day,"LWupSFC",itau_w,zx_tmp_fi2d) |
---|
327 | c |
---|
328 | zx_tmp_fi2d(1:klon) = flwp(1:klon) |
---|
329 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
330 | CALL histwrite_phy(nid_day,"lwp",itau_w,zx_tmp_fi2d) |
---|
331 | c |
---|
332 | zx_tmp_fi2d(1:klon) = fiwp(1:klon) |
---|
333 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
334 | CALL histwrite_phy(nid_day,"iwp",itau_w,zx_tmp_fi2d) |
---|
335 | c |
---|
336 | zx_tmp_fi2d(1 : klon) = zxfluxu(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,"taux",itau_w,zx_tmp_fi2d) |
---|
339 | c |
---|
340 | zx_tmp_fi2d(1 : klon) = zxfluxv(1 : klon, 1) |
---|
341 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
342 | CALL histwrite_phy(nid_day,"tauy",itau_w,zx_tmp_fi2d) |
---|
343 | c |
---|
344 | ENDIF !lev_histday.GE.2 |
---|
345 | c |
---|
346 | IF(lev_histday.GE.3) THEN |
---|
347 | c================================================================= |
---|
348 | c ECRITURE DES CHAMPS 3D |
---|
349 | c================================================================= |
---|
350 | c |
---|
351 | c Champs 3D: |
---|
352 | c |
---|
353 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d) |
---|
354 | CALL histwrite_phy(nid_day,"temp",itau_w,t_seri) |
---|
355 | c |
---|
356 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, qx(1,1,ivap), zx_tmp_3d) |
---|
357 | CALL histwrite_phy(nid_day,"ovap",itau_w,qx(:,:,ivap)) |
---|
358 | c |
---|
359 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zphi, zx_tmp_3d) |
---|
360 | CALL histwrite_phy(nid_day,"geop",itau_w,zphi) |
---|
361 | c |
---|
362 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, u_seri, zx_tmp_3d) |
---|
363 | CALL histwrite_phy(nid_day,"vitu",itau_w,u_seri) |
---|
364 | c |
---|
365 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, v_seri, zx_tmp_3d) |
---|
366 | CALL histwrite_phy(nid_day,"vitv",itau_w,v_seri) |
---|
367 | c |
---|
368 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, omega, zx_tmp_3d) |
---|
369 | CALL histwrite_phy(nid_day,"vitw",itau_w,omega) |
---|
370 | c |
---|
371 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, pplay, zx_tmp_3d) |
---|
372 | CALL histwrite_phy(nid_day,"pres",itau_w,pplay) |
---|
373 | c |
---|
374 | ENDIF !lev_histday.GE.3 |
---|
375 | c================================================================= |
---|
376 | c FIN ECRITURE DES CHAMPS 3D |
---|
377 | c================================================================= |
---|
378 | IF(lev_histday.ge.4) THEN |
---|
379 | c================================================================= |
---|
380 | c |
---|
381 | c ECRITURE DES CHAMPS SUR LES SOUS SURFACES |
---|
382 | c |
---|
383 | c================================================================= |
---|
384 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_ter) |
---|
385 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d ,zx_tmp_2d) |
---|
386 | CALL histwrite_phy(nid_day,"tter",itau_w,zx_tmp_fi2d) |
---|
387 | c |
---|
388 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_lic) |
---|
389 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
390 | CALL histwrite_phy(nid_day,"tlic",itau_w,zx_tmp_fi2d) |
---|
391 | c |
---|
392 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_oce) |
---|
393 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
394 | CALL histwrite_phy(nid_day,"toce",itau_w,zx_tmp_fi2d) |
---|
395 | c |
---|
396 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_sic) |
---|
397 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
398 | CALL histwrite_phy(nid_day,"tsic",itau_w,zx_tmp_fi2d) |
---|
399 | c |
---|
400 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_ter) |
---|
401 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
402 | CALL histwrite_phy(nid_day,"t2mter",itau_w,zx_tmp_fi2d) |
---|
403 | c |
---|
404 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_ter) |
---|
405 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
406 | CALL histwrite_phy(nid_day,"t2mter_min",itau_w,zx_tmp_fi2d) |
---|
407 | c |
---|
408 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_ter) |
---|
409 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
410 | CALL histwrite_phy(nid_day,"t2mter_max",itau_w,zx_tmp_fi2d) |
---|
411 | c |
---|
412 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_lic) |
---|
413 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
414 | CALL histwrite_phy(nid_day,"t2mlic",itau_w,zx_tmp_fi2d) |
---|
415 | c |
---|
416 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_oce) |
---|
417 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
418 | CALL histwrite_phy(nid_day,"t2moce",itau_w,zx_tmp_fi2d) |
---|
419 | c |
---|
420 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_sic) |
---|
421 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
422 | CALL histwrite_phy(nid_day,"t2msic",itau_w,zx_tmp_fi2d) |
---|
423 | c |
---|
424 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_ter) |
---|
425 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
426 | CALL histwrite_phy(nid_day,"u10mter",itau_w,zx_tmp_fi2d) |
---|
427 | c |
---|
428 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_ter) |
---|
429 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
430 | CALL histwrite_phy(nid_day,"v10mter",itau_w,zx_tmp_fi2d) |
---|
431 | c |
---|
432 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_lic) |
---|
433 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
434 | CALL histwrite_phy(nid_day,"u10mlic",itau_w,zx_tmp_fi2d) |
---|
435 | c |
---|
436 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_lic) |
---|
437 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
438 | CALL histwrite_phy(nid_day,"v10mlic",itau_w,zx_tmp_fi2d) |
---|
439 | c |
---|
440 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_oce) |
---|
441 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
442 | CALL histwrite_phy(nid_day,"u10moce",itau_w,zx_tmp_fi2d) |
---|
443 | c |
---|
444 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_oce) |
---|
445 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
446 | CALL histwrite_phy(nid_day,"v10moce",itau_w,zx_tmp_fi2d) |
---|
447 | c |
---|
448 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_sic) |
---|
449 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
450 | CALL histwrite_phy(nid_day,"u10msic",itau_w,zx_tmp_fi2d) |
---|
451 | C |
---|
452 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_sic) |
---|
453 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
454 | CALL histwrite_phy(nid_day,"v10msic",itau_w,zx_tmp_fi2d) |
---|
455 | C |
---|
456 | DO nsrf = 1, nbsrf |
---|
457 | C |
---|
458 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf)*100. |
---|
459 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
460 | CALL histwrite_phy(nid_day,"pourc_"//clnsurf(nsrf),itau_w, |
---|
461 | & zx_tmp_fi2d) |
---|
462 | C |
---|
463 | zx_tmp_fi2d(1 : klon) = pctsrf( 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,"fract_"//clnsurf(nsrf),itau_w, |
---|
466 | & zx_tmp_fi2d) |
---|
467 | C |
---|
468 | zx_tmp_fi2d(1 : klon) = ftsol( 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,"tsol_"//clnsurf(nsrf),itau_w, |
---|
471 | $ zx_tmp_fi2d) |
---|
472 | C |
---|
473 | zx_tmp_fi2d(1 : klon) = fluxt( 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,"sens_"//clnsurf(nsrf),itau_w, |
---|
476 | $ zx_tmp_fi2d) |
---|
477 | C |
---|
478 | zx_tmp_fi2d(1 : klon) = fluxlat( 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,"lat_"//clnsurf(nsrf),itau_w, |
---|
481 | $ zx_tmp_fi2d) |
---|
482 | C |
---|
483 | zx_tmp_fi2d(1 : klon) = fluxu( 1 : klon, 1, nsrf) |
---|
484 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
485 | CALL histwrite_phy(nid_day,"taux_"//clnsurf(nsrf),itau_w, |
---|
486 | $ zx_tmp_fi2d) |
---|
487 | C |
---|
488 | zx_tmp_fi2d(1 : klon) = fluxv( 1 : klon, 1, nsrf) |
---|
489 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
490 | CALL histwrite_phy(nid_day,"tauy_"//clnsurf(nsrf),itau_w, |
---|
491 | $ zx_tmp_fi2d) |
---|
492 | C |
---|
493 | zx_tmp_fi2d(1 : klon) = falbe( 1 : klon, nsrf) |
---|
494 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
495 | CALL histwrite_phy(nid_day,"albe_"//clnsurf(nsrf),itau_w, |
---|
496 | $ zx_tmp_fi2d) |
---|
497 | C |
---|
498 | zx_tmp_fi2d(1 : klon) = frugs( 1 : klon, nsrf) |
---|
499 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
500 | CALL histwrite_phy(nid_day,"rugs_"//clnsurf(nsrf),itau_w, |
---|
501 | $ zx_tmp_fi2d) |
---|
502 | C |
---|
503 | END DO |
---|
504 | c================================================================= |
---|
505 | c FIN ECRITURE DES CHAMPS SUR LES SOUS SURFACES |
---|
506 | c================================================================= |
---|
507 | ENDIF !lev_histday.GE.4 |
---|
508 | c |
---|
509 | IF(lev_histday.GE.5) THEN !lev_histday.GE.5 |
---|
510 | c |
---|
511 | c rajout sorties F. Aires |
---|
512 | c |
---|
513 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw0,zx_tmp_2d) |
---|
514 | CALL histwrite_phy(nid_day,"tops0",itau_w,topsw0) |
---|
515 | c |
---|
516 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw0,zx_tmp_2d) |
---|
517 | CALL histwrite_phy(nid_day,"topl0",itau_w,toplw0) |
---|
518 | c |
---|
519 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw0,zx_tmp_2d) |
---|
520 | CALL histwrite_phy(nid_day,"sols0",itau_w,solsw0) |
---|
521 | c |
---|
522 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw0,zx_tmp_2d) |
---|
523 | CALL histwrite_phy(nid_day,"soll0",itau_w, sollw0) |
---|
524 | c |
---|
525 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldfra, zx_tmp_3d) |
---|
526 | CALL histwrite_phy(nid_day,"rneb",itau_w,cldfra) |
---|
527 | c |
---|
528 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, rnebcon, zx_tmp_3d) |
---|
529 | CALL histwrite_phy(nid_day,"rnebcon",itau_w,rnebcon) |
---|
530 | c |
---|
531 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, flwc,zx_tmp_3d) |
---|
532 | CALL histwrite_phy(nid_day,"lwcon",itau_w,flwc) |
---|
533 | c |
---|
534 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, fiwc,zx_tmp_3d) |
---|
535 | CALL histwrite_phy(nid_day,"iwcon",itau_w,fiwc) |
---|
536 | c |
---|
537 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldtau,zx_tmp_3d) |
---|
538 | CALL histwrite_phy(nid_day,"cldtau",itau_w,cldtau) |
---|
539 | c |
---|
540 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldemi,zx_tmp_3d) |
---|
541 | CALL histwrite_phy(nid_day,"cldemi",itau_w,cldemi) |
---|
542 | c |
---|
543 | c |
---|
544 | cIM: 101003 : K/30min ==> K/s |
---|
545 | zx_tmp_fi3d(1:klon,1:klev)=d_t_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,"dtcon",itau_w,zx_tmp_fi3d) |
---|
548 | c |
---|
549 | zx_tmp_fi3d(1:klon,1:klev)=d_q_con(1:klon,1:klev)/pdtphys |
---|
550 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
551 | CALL histwrite_phy(nid_day,"dqcon",itau_w,zx_tmp_fi3d) |
---|
552 | c |
---|
553 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, qsat2m,zx_tmp_2d) |
---|
554 | CALL histwrite_phy(nid_day,"qsat2m",itau_w,qsat2m) |
---|
555 | c |
---|
556 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, tpot,zx_tmp_2d) |
---|
557 | CALL histwrite_phy(nid_day,"tpot",itau_w,tpot) |
---|
558 | c |
---|
559 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, tpote,zx_tmp_2d) |
---|
560 | CALL histwrite_phy(nid_day,"tpote",itau_w,tpote) |
---|
561 | c |
---|
562 | ENDIF !lev_histday.GE.5 |
---|
563 | c================================================================= |
---|
564 | c================================================================= |
---|
565 | c================================================================= |
---|
566 | c |
---|
567 | if (ok_sync) then |
---|
568 | c$OMP MASTER |
---|
569 | call histsync(nid_day) |
---|
570 | c$OMP END MASTER |
---|
571 | endif |
---|
572 | |
---|
573 | ENDIF |
---|