1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | IF (ok_journe) THEN |
---|
5 | c |
---|
6 | ndex2d = 0 |
---|
7 | ndex3d = 0 |
---|
8 | c |
---|
9 | c Champs 2D: |
---|
10 | c |
---|
11 | zsto = dtime |
---|
12 | zout = dtime * FLOAT(ecrit_day) |
---|
13 | itau_w = itau_phy + itap |
---|
14 | |
---|
15 | i = NINT(zout/zsto) |
---|
16 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,pphis,zx_tmp_2d) |
---|
17 | c |
---|
18 | IF(lev_histday.GE.1) THEN |
---|
19 | c |
---|
20 | CALL histwrite(nid_day,"phis",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
21 | varname = 'phis' |
---|
22 | vartitle= 'Surface geop. height' |
---|
23 | varunits= '-' |
---|
24 | c |
---|
25 | i = NINT(zout/zsto) |
---|
26 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,airephy,zx_tmp_2d) |
---|
27 | CALL histwrite(nid_day,"aire",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
28 | varname = 'aire' |
---|
29 | vartitle= 'Grid area' |
---|
30 | varunits= '-' |
---|
31 | c |
---|
32 | DO i=1, klon |
---|
33 | zx_tmp_fi2d(i)=pctsrf(i,is_ter)+pctsrf(i,is_lic) |
---|
34 | ENDDO |
---|
35 | c |
---|
36 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
37 | CALL histwrite(nid_day,"contfracATM",itau_w, |
---|
38 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
39 | c |
---|
40 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,pctsrf_new(:,is_ter),zx_tmp_2d) |
---|
41 | CALL histwrite(nid_day,"contfracOR",itau_w, |
---|
42 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
43 | c |
---|
44 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxtsol,zx_tmp_2d) |
---|
45 | CALL histwrite(nid_day,"tsol",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
46 | C |
---|
47 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
48 | CALL histwrite(nid_day,"t2m",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
49 | c |
---|
50 | c En attendant un eventuel debugage. |
---|
51 | |
---|
52 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
53 | CALL histwrite(nid_day,"t2m_min",itau_w,zx_tmp_2d, |
---|
54 | . iim*jjmp1,ndex2d) |
---|
55 | c |
---|
56 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
57 | CALL histwrite(nid_day,"t2m_max",itau_w,zx_tmp_2d, |
---|
58 | . iim*jjmp1,ndex2d) |
---|
59 | c |
---|
60 | DO i = 1, klon |
---|
61 | zx_tmp_fi2d(i) = rain_lsc(i) + snow_lsc(i) |
---|
62 | ENDDO |
---|
63 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
64 | CALL histwrite(nid_day,"plul",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
65 | c |
---|
66 | DO i = 1, klon |
---|
67 | zx_tmp_fi2d(i) = rain_con(i) + snow_con(i) |
---|
68 | ENDDO |
---|
69 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
70 | CALL histwrite(nid_day,"pluc",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
71 | c |
---|
72 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_lsc,zx_tmp_2d) |
---|
73 | CALL histwrite(nid_day,"snowl",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
74 | c |
---|
75 | IF(1.EQ.0) THEN |
---|
76 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_con,zx_tmp_2d) |
---|
77 | CALL histwrite(nid_day,"snowc",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
78 | ENDIF |
---|
79 | c |
---|
80 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxfluxlat,zx_tmp_2d) |
---|
81 | CALL histwrite(nid_day,"flat",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
82 | c |
---|
83 | DO i = 1, klon |
---|
84 | zx_tmp_fi2d(i) = pctsrf(i,is_sic) |
---|
85 | ENDDO |
---|
86 | c |
---|
87 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
88 | CALL histwrite(nid_day,"sicf",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
89 | c |
---|
90 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zq2m,zx_tmp_2d) |
---|
91 | CALL histwrite(nid_day,"q2m",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
92 | c |
---|
93 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zu10m,zx_tmp_2d) |
---|
94 | CALL histwrite(nid_day,"u10m",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
95 | . ndex2d) |
---|
96 | c |
---|
97 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zv10m,zx_tmp_2d) |
---|
98 | CALL histwrite(nid_day,"v10m",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
99 | . ndex2d) |
---|
100 | c |
---|
101 | DO i=1, klon |
---|
102 | zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i)) |
---|
103 | ENDDO |
---|
104 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
105 | CALL histwrite(nid_day,"wind10m",itau_w,zx_tmp_2d, |
---|
106 | $ iim*jjmp1,ndex2d) |
---|
107 | c |
---|
108 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
109 | CALL histwrite(nid_day,"wind10max",itau_w,zx_tmp_2d, |
---|
110 | . iim*jjmp1,ndex2d) |
---|
111 | c |
---|
112 | DO i=1, klon |
---|
113 | zx_tmp_fi2d(i) = paprs(i,1) |
---|
114 | ENDDO |
---|
115 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
116 | CALL histwrite(nid_day,"psol",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
117 | c |
---|
118 | DO i=1, klon |
---|
119 | zx_tmp_fi2d(i) = (rain_fall(i) + snow_fall(i)) |
---|
120 | ENDDO |
---|
121 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
122 | CALL histwrite(nid_day,"precip",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
123 | c |
---|
124 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_fall,zx_tmp_2d) |
---|
125 | CALL histwrite(nid_day,"snowf",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
126 | c |
---|
127 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxsnow,zx_tmp_2d) |
---|
128 | CALL histwrite(nid_day,"snow_mass",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
129 | . ndex2d) |
---|
130 | c |
---|
131 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, evap,zx_tmp_2d) |
---|
132 | CALL histwrite(nid_day,"evap",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
133 | c |
---|
134 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw,zx_tmp_2d) |
---|
135 | CALL histwrite(nid_day,"tops",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
136 | c |
---|
137 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw,zx_tmp_2d) |
---|
138 | CALL histwrite(nid_day,"topl",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
139 | c |
---|
140 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw,zx_tmp_2d) |
---|
141 | CALL histwrite(nid_day,"sols",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
142 | c |
---|
143 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw,zx_tmp_2d) |
---|
144 | CALL histwrite(nid_day,"soll",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
145 | c |
---|
146 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldl,zx_tmp_2d) |
---|
147 | CALL histwrite(nid_day,"cldl",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
148 | c |
---|
149 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldm,zx_tmp_2d) |
---|
150 | CALL histwrite(nid_day,"cldm",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
151 | c |
---|
152 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldh,zx_tmp_2d) |
---|
153 | CALL histwrite(nid_day,"cldh",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
154 | c |
---|
155 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldt,zx_tmp_2d) |
---|
156 | CALL histwrite(nid_day,"cldt",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
157 | c |
---|
158 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldq,zx_tmp_2d) |
---|
159 | CALL histwrite(nid_day,"cldq",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
160 | c |
---|
161 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, prw,zx_tmp_2d) |
---|
162 | CALL histwrite(nid_day,"prw",itau_w,zx_tmp_2d, |
---|
163 | . iim*jjmp1,ndex2d) |
---|
164 | |
---|
165 | c Ecriture de champs dynamiques sur des niveaux de pression |
---|
166 | DO k=1, nlevENS |
---|
167 | c |
---|
168 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, ulev(:,k),zx_tmp_2d) |
---|
169 | CALL histwrite(nid_day,"u"//clev(k),itau_w,zx_tmp_2d, |
---|
170 | $ iim*jjmp1,ndex2d) |
---|
171 | c |
---|
172 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, vlev(:,k),zx_tmp_2d) |
---|
173 | CALL histwrite(nid_day,"v"//clev(k),itau_w,zx_tmp_2d, |
---|
174 | $ iim*jjmp1,ndex2d) |
---|
175 | c |
---|
176 | ENDDO !nlevENS |
---|
177 | c |
---|
178 | DO k=1, nlevENS |
---|
179 | IF(clev(k).EQ."500") THEN |
---|
180 | c |
---|
181 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, wlev(:,indENS(k)),zx_tmp_2d) |
---|
182 | CALL histwrite(nid_day,"w500",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
183 | c |
---|
184 | c DO i=1, klon |
---|
185 | c print*,' ind, phi 500hPa',i,indENS(k),philev(:,indENS(k)) |
---|
186 | c print*,' ind, phi 500hPa',i,indENS(k) |
---|
187 | c ENDDO |
---|
188 | c |
---|
189 | cBAD CALL gr_fi_ecrit(1, klon,iim,jjmp1, philev(:,indENS(k)),zx_tmp_2d) |
---|
190 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, philev(:,k),zx_tmp_2d) |
---|
191 | CALL histwrite(nid_day,"phi500",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
192 | c |
---|
193 | ENDIF !clev(k).EQ.500 |
---|
194 | ENDDO !k=1, nlevENS |
---|
195 | c |
---|
196 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, slp,zx_tmp_2d) |
---|
197 | CALL histwrite(nid_day,"slp",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
198 | |
---|
199 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,cape,zx_tmp_2d) |
---|
200 | CALL histwrite(nid_day,"cape_max",itau_w,zx_tmp_2d, |
---|
201 | . iim*jjmp1,ndex2d) |
---|
202 | c |
---|
203 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
204 | CALL histwrite(nid_day,"solldown",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
205 | . ndex2d) |
---|
206 | c |
---|
207 | DO i=1, klon |
---|
208 | zx_tmp_fi2d(i)=-1*sens(i) |
---|
209 | ENDDO |
---|
210 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
211 | CALL histwrite(nid_day,"sens",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
212 | c |
---|
213 | zx_tmp_fi2d(1 : klon) = swdn(1 : klon, 1) |
---|
214 | |
---|
215 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
216 | CALL histwrite(nid_day, "SWdnSFC",itau_w,zx_tmp_2d, |
---|
217 | . iim*jjmp1,ndex2d) |
---|
218 | c |
---|
219 | ENDIF !lev_histday.GE.1 |
---|
220 | c |
---|
221 | IF(lev_histday.GE.2) THEN |
---|
222 | c |
---|
223 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, bils,zx_tmp_2d) |
---|
224 | CALL histwrite(nid_day,"bils",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
225 | c |
---|
226 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, fder,zx_tmp_2d) |
---|
227 | CALL histwrite(nid_day,"fder",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
228 | c |
---|
229 | ENDIF !lev_histday.GE.2 |
---|
230 | c |
---|
231 | IF(lev_histday.GE.3) THEN |
---|
232 | c================================================================= |
---|
233 | c ECRITURE DES CHAMPS 3D |
---|
234 | c================================================================= |
---|
235 | |
---|
236 | c |
---|
237 | c Champs 3D: |
---|
238 | c |
---|
239 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d) |
---|
240 | CALL histwrite(nid_day,"temp",itau_w,zx_tmp_3d, |
---|
241 | . iim*jjmp1*klev,ndex3d) |
---|
242 | c |
---|
243 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, qx(1,1,ivap), zx_tmp_3d) |
---|
244 | CALL histwrite(nid_day,"ovap",itau_w,zx_tmp_3d, |
---|
245 | . iim*jjmp1*klev,ndex3d) |
---|
246 | c |
---|
247 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zphi, zx_tmp_3d) |
---|
248 | CALL histwrite(nid_day,"geop",itau_w,zx_tmp_3d, |
---|
249 | . iim*jjmp1*klev,ndex3d) |
---|
250 | c |
---|
251 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, u_seri, zx_tmp_3d) |
---|
252 | CALL histwrite(nid_day,"vitu",itau_w,zx_tmp_3d, |
---|
253 | . iim*jjmp1*klev,ndex3d) |
---|
254 | c |
---|
255 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, v_seri, zx_tmp_3d) |
---|
256 | CALL histwrite(nid_day,"vitv",itau_w,zx_tmp_3d, |
---|
257 | . iim*jjmp1*klev,ndex3d) |
---|
258 | c |
---|
259 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, omega, zx_tmp_3d) |
---|
260 | CALL histwrite(nid_day,"vitw",itau_w,zx_tmp_3d, |
---|
261 | . iim*jjmp1*klev,ndex3d) |
---|
262 | c |
---|
263 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, pplay, zx_tmp_3d) |
---|
264 | CALL histwrite(nid_day,"pres",itau_w,zx_tmp_3d, |
---|
265 | . iim*jjmp1*klev,ndex3d) |
---|
266 | c |
---|
267 | ENDIF !lev_histday.GE.3 |
---|
268 | c================================================================= |
---|
269 | c FIN ECRITURE DES CHAMPS 3D |
---|
270 | c================================================================= |
---|
271 | IF(lev_histday.ge.4) THEN |
---|
272 | c================================================================= |
---|
273 | c |
---|
274 | c ECRITURE DES CHAMPS SUR LES SOUS SURFACES |
---|
275 | c |
---|
276 | c================================================================= |
---|
277 | zx_tmp_fi2d(1 : klon) = swup( 1 : klon, klevp1 ) |
---|
278 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
279 | CALL histwrite(nid_day, "SWupTOA",itau_w,zx_tmp_2d, |
---|
280 | . iim*jjmp1,ndex2d) |
---|
281 | c |
---|
282 | zx_tmp_fi2d(1 : klon) = swup( 1 : klon, 1 ) |
---|
283 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
284 | CALL histwrite(nid_day, "SWupSFC",itau_w,zx_tmp_2d, |
---|
285 | . iim*jjmp1,ndex2d) |
---|
286 | c |
---|
287 | zx_tmp_fi2d(1 : klon) = swdn( 1 : klon, klevp1 ) |
---|
288 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
289 | CALL histwrite(nid_day, "SWdnTOA",itau_w,zx_tmp_2d, |
---|
290 | . iim*jjmp1,ndex2d) |
---|
291 | c |
---|
292 | zx_tmp_fi2d(1 : klon) = swup0( 1 : klon, klevp1 ) |
---|
293 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
294 | CALL histwrite(nid_day, "SWupTOAclr",itau_w,zx_tmp_2d, |
---|
295 | . iim*jjmp1,ndex2d) |
---|
296 | c |
---|
297 | zx_tmp_fi2d(1 : klon) = swup0( 1 : klon, 1 ) |
---|
298 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
299 | CALL histwrite(nid_day, "SWupSFCclr",itau_w,zx_tmp_2d, |
---|
300 | . iim*jjmp1,ndex2d) |
---|
301 | c |
---|
302 | zx_tmp_fi2d(1 : klon) = swdn0( 1 : klon, klevp1 ) |
---|
303 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
304 | CALL histwrite(nid_day, "SWdnTOAclr",itau_w,zx_tmp_2d, |
---|
305 | . iim*jjmp1,ndex2d) |
---|
306 | c |
---|
307 | zx_tmp_fi2d(1 : klon) = swdn0( 1 : klon, 1 ) |
---|
308 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
309 | CALL histwrite(nid_day, "SWdnSFCclr",itau_w,zx_tmp_2d, |
---|
310 | . iim*jjmp1,ndex2d) |
---|
311 | c |
---|
312 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_ter) |
---|
313 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d ,zx_tmp_2d) |
---|
314 | CALL histwrite(nid_day,"tter",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
315 | c |
---|
316 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_lic) |
---|
317 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
318 | CALL histwrite(nid_day,"tlic",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
319 | c |
---|
320 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_oce) |
---|
321 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
322 | CALL histwrite(nid_day,"toce",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
323 | c |
---|
324 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_sic) |
---|
325 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
326 | CALL histwrite(nid_day,"tsic",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
327 | c |
---|
328 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
329 | CALL histwrite(nid_day,"t2mter",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
330 | . ndex2d) |
---|
331 | c |
---|
332 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_ter) |
---|
333 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
334 | CALL histwrite(nid_day,"t2mter_min",itau_w,zx_tmp_2d, |
---|
335 | . iim*jjmp1,ndex2d) |
---|
336 | c |
---|
337 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_ter) |
---|
338 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
339 | CALL histwrite(nid_day,"t2mter_max",itau_w,zx_tmp_2d, |
---|
340 | . iim*jjmp1,ndex2d) |
---|
341 | c |
---|
342 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_lic) |
---|
343 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
344 | CALL histwrite(nid_day,"t2mlic",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
345 | . ndex2d) |
---|
346 | c |
---|
347 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_oce) |
---|
348 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
349 | CALL histwrite(nid_day,"t2moce",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
350 | . ndex2d) |
---|
351 | c |
---|
352 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_sic) |
---|
353 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
354 | CALL histwrite(nid_day,"t2msic",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
355 | . ndex2d) |
---|
356 | c |
---|
357 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_ter) |
---|
358 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
359 | CALL histwrite(nid_day,"u10mter",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
360 | . ndex2d) |
---|
361 | c |
---|
362 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_ter) |
---|
363 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
364 | CALL histwrite(nid_day,"v10mter",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
365 | . ndex2d) |
---|
366 | c |
---|
367 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_lic) |
---|
368 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
369 | CALL histwrite(nid_day,"u10mlic",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
370 | . ndex2d) |
---|
371 | c |
---|
372 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_lic) |
---|
373 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
374 | CALL histwrite(nid_day,"v10mlic",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
375 | . ndex2d) |
---|
376 | c |
---|
377 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_oce) |
---|
378 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
379 | CALL histwrite(nid_day,"u10moce",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
380 | . ndex2d) |
---|
381 | c |
---|
382 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_oce) |
---|
383 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
384 | CALL histwrite(nid_day,"v10moce",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
385 | . ndex2d) |
---|
386 | c |
---|
387 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_sic) |
---|
388 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
389 | CALL histwrite(nid_day,"u10msic",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
390 | . ndex2d) |
---|
391 | C |
---|
392 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_sic) |
---|
393 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
394 | CALL histwrite(nid_day,"v10msic",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
395 | . ndex2d) |
---|
396 | C |
---|
397 | DO nsrf = 1, nbsrf |
---|
398 | C |
---|
399 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf) |
---|
400 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
401 | CALL histwrite(nid_day,"pourc_"//clnsurf(nsrf),itau_w, |
---|
402 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
403 | C |
---|
404 | zx_tmp_fi2d(1 : klon) = ftsol( 1 : klon, nsrf) |
---|
405 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
406 | CALL histwrite(nid_day,"tsol_"//clnsurf(nsrf),itau_w, |
---|
407 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
408 | C |
---|
409 | zx_tmp_fi2d(1 : klon) = fluxt( 1 : klon, 1, nsrf) |
---|
410 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
411 | CALL histwrite(nid_day,"sens_"//clnsurf(nsrf),itau_w, |
---|
412 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
413 | C |
---|
414 | zx_tmp_fi2d(1 : klon) = fluxlat( 1 : klon, nsrf) |
---|
415 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
416 | CALL histwrite(nid_day,"lat_"//clnsurf(nsrf),itau_w, |
---|
417 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
418 | C |
---|
419 | zx_tmp_fi2d(1 : klon) = fluxu( 1 : klon, 1, nsrf) |
---|
420 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
421 | CALL histwrite(nid_day,"taux_"//clnsurf(nsrf),itau_w, |
---|
422 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
423 | C |
---|
424 | zx_tmp_fi2d(1 : klon) = fluxv( 1 : klon, 1, nsrf) |
---|
425 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
426 | CALL histwrite(nid_day,"tauy_"//clnsurf(nsrf),itau_w, |
---|
427 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
428 | C |
---|
429 | zx_tmp_fi2d(1 : klon) = falbe( 1 : klon, nsrf) |
---|
430 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
431 | CALL histwrite(nid_day,"albe_"//clnsurf(nsrf),itau_w, |
---|
432 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
433 | C |
---|
434 | zx_tmp_fi2d(1 : klon) = frugs( 1 : klon, nsrf) |
---|
435 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
436 | CALL histwrite(nid_day,"rugs_"//clnsurf(nsrf),itau_w, |
---|
437 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
438 | C |
---|
439 | END DO |
---|
440 | c================================================================= |
---|
441 | c FIN ECRITURE DES CHAMPS SUR LES SOUS SURFACES |
---|
442 | c================================================================= |
---|
443 | ENDIF !lev_histday.GE.4 |
---|
444 | c |
---|
445 | c================================================================= |
---|
446 | c================================================================= |
---|
447 | c================================================================= |
---|
448 | c |
---|
449 | if (ok_sync) then |
---|
450 | call histsync(nid_day) |
---|
451 | endif |
---|
452 | |
---|
453 | ENDIF |
---|