1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | ndex = 0 |
---|
5 | ndex2d = 0 |
---|
6 | ndex3d = 0 |
---|
7 | c |
---|
8 | zsto = pdtphys |
---|
9 | zout = pdtphys * FLOAT(ecrit_tra) |
---|
10 | itau_w = itau_phy + nstep |
---|
11 | |
---|
12 | |
---|
13 | i = NINT(zout/zsto) |
---|
14 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) |
---|
15 | CALL histwrite(nid_tra,"phis",itau_w,zx_tmp_2d,iim*(jjm+1),ndex2d) |
---|
16 | C |
---|
17 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,airephy,zx_tmp_2d) |
---|
18 | CALL histwrite(nid_tra,"aire",itau_w,zx_tmp_2d,iim*(jjm+1),ndex2d) |
---|
19 | #ifdef INCA |
---|
20 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, ps,zx_tmp_2d) |
---|
21 | CALL histwrite(nid_tra,"ps",itau_w,zx_tmp_2d, |
---|
22 | . iim*(jjm+1),ndex2d) |
---|
23 | |
---|
24 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, ptrop,zx_tmp_2d) |
---|
25 | CALL histwrite(nid_tra,"ptrop",itau_w,zx_tmp_2d, |
---|
26 | . iim*(jjm+1),ndex2d) |
---|
27 | |
---|
28 | C 3d FIELDS |
---|
29 | |
---|
30 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,t_seri, zx_tmp_3d) |
---|
31 | CALL histwrite(nid_tra,"temp",itau_w,zx_tmp_3d, |
---|
32 | . iim*(jjm+1)*klev,ndex3d) |
---|
33 | |
---|
34 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,u, zx_tmp_3d) |
---|
35 | CALL histwrite(nid_tra,"u",itau_w,zx_tmp_3d, |
---|
36 | . iim*(jjm+1)*klev,ndex3d) |
---|
37 | |
---|
38 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,v, zx_tmp_3d) |
---|
39 | CALL histwrite(nid_tra,"v",itau_w,zx_tmp_3d, |
---|
40 | . iim*(jjm+1)*klev,ndex3d) |
---|
41 | |
---|
42 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,sh, zx_tmp_3d) |
---|
43 | CALL histwrite(nid_tra,"h2o",itau_w,zx_tmp_3d, |
---|
44 | . iim*(jjm+1)*klev,ndex3d) |
---|
45 | |
---|
46 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pdel, zx_tmp_3d) |
---|
47 | CALL histwrite(nid_tra,"pdel",itau_w,zx_tmp_3d, |
---|
48 | . iim*(jjm+1)*klev,ndex3d) |
---|
49 | |
---|
50 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pplay, zx_tmp_3d) |
---|
51 | CALL histwrite(nid_tra,"pmid",itau_w,zx_tmp_3d, |
---|
52 | . iim*(jjm+1)*klev,ndex3d) |
---|
53 | |
---|
54 | ! Ajout Anne |
---|
55 | !#ifdef INCA_AER |
---|
56 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,airm, zx_tmp_3d) |
---|
57 | ! CALL histwrite(nid_tra,"airm",itra,zx_tmp_3d, |
---|
58 | ! . iim*(jjm+1)*klev,ndex) |
---|
59 | !#endif |
---|
60 | |
---|
61 | ! Fin ajout Anne |
---|
62 | |
---|
63 | #ifdef INCA |
---|
64 | #ifdef INCAINFO |
---|
65 | DO it=1, phtcnt |
---|
66 | WRITE(str2,'(i2.2)') it |
---|
67 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,jrates(1,1,it), |
---|
68 | . zx_tmp_3d) |
---|
69 | CALL histwrite(nid_tra,"j"//str2,itau_w,zx_tmp_3d, |
---|
70 | . iim*(jjm+1)*klev,ndex3d) |
---|
71 | ENDDO |
---|
72 | |
---|
73 | DO it=1, hetcnt |
---|
74 | WRITE(str2,'(i2.2)') it |
---|
75 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,hrates(1,1,it), |
---|
76 | . zx_tmp_3d) |
---|
77 | CALL histwrite(nid_tra,"w"//str2,itau_w,zx_tmp_3d, |
---|
78 | . iim*(jjm+1)*klev,ndex3d) |
---|
79 | ENDDO |
---|
80 | |
---|
81 | DO it=1, extcnt |
---|
82 | WRITE(str2,'(i2.2)') it |
---|
83 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,extflx(1,1,it), |
---|
84 | . zx_tmp_3d) |
---|
85 | CALL histwrite(nid_tra,"ext"//str2,itau_w,zx_tmp_3d, |
---|
86 | . iim*(jjm+1)*klev,ndex3d) |
---|
87 | ENDDO |
---|
88 | |
---|
89 | DO it=1, nfs |
---|
90 | WRITE(str2,'(i2.2)') it |
---|
91 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,invariants(1,1,it), |
---|
92 | . zx_tmp_3d) |
---|
93 | CALL histwrite(nid_tra,"INV"//str2,itau_w,zx_tmp_3d, |
---|
94 | . iim*(jjm+1)*klev,ndex3d) |
---|
95 | ENDDO |
---|
96 | #else |
---|
97 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,jrates(1,1,2), |
---|
98 | . zx_tmp_3d) |
---|
99 | CALL histwrite(nid_tra,"jO3",itau_w,zx_tmp_3d, |
---|
100 | . iim*(jjm+1)*klev,ndex3d) |
---|
101 | |
---|
102 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,jrates(1,1,4), |
---|
103 | . zx_tmp_3d) |
---|
104 | CALL histwrite(nid_tra,"jNO2",itau_w,zx_tmp_3d, |
---|
105 | . iim*(jjm+1)*klev,ndex3d) |
---|
106 | |
---|
107 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,jrates(1,1,13), |
---|
108 | . zx_tmp_3d) |
---|
109 | CALL histwrite(nid_tra,"jH2O2",itau_w,zx_tmp_3d, |
---|
110 | . iim*(jjm+1)*klev,ndex3d) |
---|
111 | |
---|
112 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,hrates(1,1,1), |
---|
113 | . zx_tmp_3d) |
---|
114 | CALL histwrite(nid_tra,"wHNO3",itau_w,zx_tmp_3d, |
---|
115 | . iim*(jjm+1)*klev,ndex3d) |
---|
116 | |
---|
117 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,krates(1,1,1), |
---|
118 | . zx_tmp_3d) |
---|
119 | CALL histwrite(nid_tra,"kN2O5",itau_w,zx_tmp_3d, |
---|
120 | . iim*(jjm+1)*klev,ndex3d) |
---|
121 | |
---|
122 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,extflx(1,1,1), |
---|
123 | . zx_tmp_3d) |
---|
124 | CALL histwrite(nid_tra,"LghtNO",itau_w,zx_tmp_3d, |
---|
125 | . iim*(jjm+1)*klev,ndex3d) |
---|
126 | #endif |
---|
127 | DO it=1, grpcnt |
---|
128 | |
---|
129 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,nas(1,1,it),zx_tmp_3d) |
---|
130 | zx_tmp_3d = zx_tmp_3d * dry_mass / nadv_mass(it) |
---|
131 | CALL histwrite(nid_tra,grpsym(it),itau_w,zx_tmp_3d, |
---|
132 | . iim*(jjm+1)*klev,ndex3d) |
---|
133 | ENDDO |
---|
134 | #endif |
---|
135 | |
---|
136 | #ifdef INCA_AER |
---|
137 | |
---|
138 | it = id_CIDUSTM |
---|
139 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,scavcoef_st(1,1,it), |
---|
140 | . zx_tmp_3d) |
---|
141 | CALL histwrite(nid_tra2,"scavcoef_st",itau_w,zx_tmp_3d, |
---|
142 | . iim*(jjm+1)*klev,ndex3d) |
---|
143 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,scavcoef_cv(1,1,it), |
---|
144 | . zx_tmp_3d) |
---|
145 | CALL histwrite(nid_tra2,"scavcoef_cv",itau_w,zx_tmp_3d, |
---|
146 | . iim*(jjm+1)*klev,ndex3d) |
---|
147 | |
---|
148 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,angst(1),zx_tmp_2d) |
---|
149 | CALL histwrite(nid_tra2,"AngstroemComp",itau_w,zx_tmp_2d, |
---|
150 | . iim*(jjm+1),ndex2d) |
---|
151 | |
---|
152 | #endif |
---|
153 | #endif |
---|
154 | |
---|
155 | DO it=1,nqmax |
---|
156 | C champs 2D |
---|
157 | #ifdef INCA |
---|
158 | IF ( prt_flag_ts(it) == 0 ) CYCLE |
---|
159 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, eflux(1,it),zx_tmp_2d) |
---|
160 | CALL histwrite(nid_tra,"Emi_"//solsym(it),itau_w,zx_tmp_2d, |
---|
161 | . iim*(jjm+1),ndex2d) |
---|
162 | |
---|
163 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, dvel(1,it),zx_tmp_2d) |
---|
164 | CALL histwrite(nid_tra,"Dep_"//solsym(it),itau_w,zx_tmp_2d, |
---|
165 | . iim*(jjm+1),ndex2d) |
---|
166 | #ifdef INCA_AER |
---|
167 | call diag(airephy,tr_seri) |
---|
168 | |
---|
169 | IF ((it .ge. trmx) .and. (it .le. trnx)) then |
---|
170 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,sflux(1,it),zx_tmp_2d) |
---|
171 | CALL histwrite(nid_tra2,"Sed_"//solsym(it),itau_w, |
---|
172 | . zx_tmp_2d,iim*(jjm+1),ndex2d) |
---|
173 | |
---|
174 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,dflux(1,it),zx_tmp_2d) |
---|
175 | CALL histwrite(nid_tra2,"Dry_"//solsym(it),itau_w,zx_tmp_2d, |
---|
176 | . iim*(jjm+1),ndex2d) |
---|
177 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,wflux(1,it),zx_tmp_2d) |
---|
178 | CALL histwrite(nid_tra2,"Wet_"//solsym(it),itau_w,zx_tmp_2d, |
---|
179 | . iim*(jjm+1),ndex2d) |
---|
180 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,wsflux(1,it),zx_tmp_2d) |
---|
181 | CALL histwrite(nid_tra2,"WetST_"//solsym(it),itau_w,zx_tmp_2d, |
---|
182 | . iim*(jjm+1),ndex2d) |
---|
183 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,wcflux(1,it),zx_tmp_2d) |
---|
184 | CALL histwrite(nid_tra2,"WetCV_"//solsym(it),itau_w,zx_tmp_2d, |
---|
185 | . iim*(jjm+1),ndex2d) |
---|
186 | |
---|
187 | CALL gr_fi_ecrit(klev, klon,iim,jjm+1,eflux_alt(1,1,it),zx_tmp_3d) |
---|
188 | CALL histwrite(nid_tra2,"Emi_alt_"//solsym(it),itau_w,zx_tmp_3d, |
---|
189 | . iim*(jjm+1)*klev,ndex3d) |
---|
190 | |
---|
191 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,aload(1,it),zx_tmp_2d) |
---|
192 | CALL histwrite(nid_tra2,"Load_"//solsym(it),itau_w,zx_tmp_2d, |
---|
193 | . iim*(jjm+1),ndex2d) |
---|
194 | CALL histwrite(nid_tra3,"Inst_Load_"//solsym(it),itau_w,zx_tmp_2d, |
---|
195 | . iim*(jjm+1),ndex2d) |
---|
196 | |
---|
197 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,sconc(1,it),zx_tmp_2d) |
---|
198 | CALL histwrite(nid_tra2,"SConc_"//solsym(it),itau_w,zx_tmp_2d, |
---|
199 | . iim*(jjm+1),ndex2d) |
---|
200 | |
---|
201 | do la=1,las |
---|
202 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,tausum(1,la,it),zx_tmp_2d) |
---|
203 | CALL histwrite(nid_tra2,"OD_"//cla(la)//solsym(it),itau_w,zx_tmp_2d, |
---|
204 | . iim*(jjm+1),ndex2d) |
---|
205 | enddo |
---|
206 | |
---|
207 | CALL gr_fi_ecrit(klev, klon,iim,jjm+1,md(1,1,it),zx_tmp_3d) |
---|
208 | CALL histwrite(nid_tra2,"MD_"//solsym(it),itau_w,zx_tmp_3d, |
---|
209 | . iim*(jjm+1)*klev,ndex3d) |
---|
210 | |
---|
211 | endif |
---|
212 | #endif |
---|
213 | C champs 3D |
---|
214 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,tr_seri(1,1,it),zx_tmp_3d) |
---|
215 | |
---|
216 | !Prefer vmr to mmr for transported species |
---|
217 | if( adv_mass(it) /= 0. ) then |
---|
218 | #ifdef INCA_AER |
---|
219 | if (it .lt. trmx) then |
---|
220 | #endif |
---|
221 | zx_tmp_3d = zx_tmp_3d * dry_mass / adv_mass(it) |
---|
222 | #ifdef INCA_AER |
---|
223 | endif |
---|
224 | #endif |
---|
225 | else |
---|
226 | #ifdef INCA |
---|
227 | if ( solsym(it) == 'OX' ) then |
---|
228 | zx_tmp_3d = zx_tmp_3d * dry_mass / nadv_mass(id_o3) |
---|
229 | end if |
---|
230 | #endif |
---|
231 | end if |
---|
232 | |
---|
233 | CALL histwrite(nid_tra,solsym(it),itau_w,zx_tmp_3d, |
---|
234 | . iim*(jjm+1)*klev,ndex3d) |
---|
235 | #else |
---|
236 | |
---|
237 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,tr_seri(1,1,it),zx_tmp_3d) |
---|
238 | CALL histwrite(nid_tra,tnom(it+2),itau_w,zx_tmp_3d, |
---|
239 | . iim*(jjm+1)*klev,ndex3d) |
---|
240 | if (lessivage) THEN |
---|
241 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,flestottr(1,1,it),zx_tmp_3d) |
---|
242 | CALL histwrite(nid_tra,"fl"//tnom(it+2),itau_w,zx_tmp_3d, |
---|
243 | . iim*(jjm+1)*klev,ndex3d) |
---|
244 | endif |
---|
245 | |
---|
246 | c----Olivia |
---|
247 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,d_tr_th(1,1,it),zx_tmp_3d) |
---|
248 | CALL histwrite(nid_tra,"d_tr_th_"//tnom(it+2),itau_w,zx_tmp_3d, |
---|
249 | . iim*(jjm+1)*klev,ndex3d) |
---|
250 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,d_tr_cv(1,1,it),zx_tmp_3d) |
---|
251 | CALL histwrite(nid_tra,"d_tr_cv_"//tnom(it+2),itau_w,zx_tmp_3d, |
---|
252 | . iim*(jjm+1)*klev,ndex3d) |
---|
253 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,d_tr_cl(1,1,it),zx_tmp_3d) |
---|
254 | CALL histwrite(nid_tra,"d_tr_cl_"//tnom(it+2),itau_w,zx_tmp_3d, |
---|
255 | . iim*(jjm+1)*klev,ndex3d) |
---|
256 | c---fin Olivia |
---|
257 | |
---|
258 | #endif |
---|
259 | ENDDO |
---|
260 | |
---|
261 | #ifdef INCA |
---|
262 | !#ifdef INCA_CH4 |
---|
263 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, o3_col(1), zx_tmp_2d) |
---|
264 | CALL histwrite(nid_tra,"O3_column",itau_w,zx_tmp_2d, |
---|
265 | . iim*(jjm+1),ndex2d) |
---|
266 | |
---|
267 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, co_col(1), zx_tmp_2d) |
---|
268 | CALL histwrite(nid_tra,"CO_column",itau_w,zx_tmp_2d, |
---|
269 | . iim*(jjm+1),ndex2d) |
---|
270 | |
---|
271 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, ch4_col(1), zx_tmp_2d) |
---|
272 | CALL histwrite(nid_tra,"CH4_column",itau_w,zx_tmp_2d, |
---|
273 | . iim*(jjm+1),ndex2d) |
---|
274 | |
---|
275 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, no2_col(1), zx_tmp_2d) |
---|
276 | CALL histwrite(nid_tra,"NO2_column",itau_w,zx_tmp_2d, |
---|
277 | . iim*(jjm+1),ndex2d) |
---|
278 | |
---|
279 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, o3_st_flx(1), zx_tmp_2d) |
---|
280 | CALL histwrite(nid_tra,"O3_ste",itau_w,zx_tmp_2d, |
---|
281 | . iim*(jjm+1),ndex2d) |
---|
282 | |
---|
283 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,o3_prod(1,1), |
---|
284 | . zx_tmp_3d) |
---|
285 | CALL histwrite(nid_tra,"O3_prod",itau_w,zx_tmp_3d, |
---|
286 | . iim*(jjm+1)*klev,ndex3d) |
---|
287 | |
---|
288 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,o3_loss(1,1), |
---|
289 | . zx_tmp_3d) |
---|
290 | CALL histwrite(nid_tra,"O3_loss",itau_w,zx_tmp_3d, |
---|
291 | . iim*(jjm+1)*klev,ndex3d) |
---|
292 | !! Ajout Anne |
---|
293 | !#ifdef INCA_AER |
---|
294 | !! for sulfur cycle |
---|
295 | ! |
---|
296 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,SO2_p_dmsoh(1,1), |
---|
297 | ! . zx_tmp_3d) |
---|
298 | ! CALL histwrite(nid_tra,"SO2_p_dmsoh",itra,zx_tmp_3d, |
---|
299 | ! . iim*(jjm+1)*klev,ndex) |
---|
300 | ! |
---|
301 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,SO2_p_dmsno3(1,1), |
---|
302 | ! . zx_tmp_3d) |
---|
303 | ! CALL histwrite(nid_tra,"SO2_p_dmsno3",itra,zx_tmp_3d, |
---|
304 | ! . iim*(jjm+1)*klev,ndex) |
---|
305 | ! |
---|
306 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,SO2_p_h2soh(1,1), |
---|
307 | ! . zx_tmp_3d) |
---|
308 | ! CALL histwrite(nid_tra,"SO2_p_h2soh",itra,zx_tmp_3d, |
---|
309 | ! . iim*(jjm+1)*klev,ndex) |
---|
310 | ! |
---|
311 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,SO2_p_dmsooh(1,1), |
---|
312 | ! . zx_tmp_3d) |
---|
313 | ! CALL histwrite(nid_tra,"SO2_p_dmsooh",itra,zx_tmp_3d, |
---|
314 | ! . iim*(jjm+1)*klev,ndex) |
---|
315 | ! |
---|
316 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,DMSO_p_dmsoh(1,1), |
---|
317 | ! . zx_tmp_3d) |
---|
318 | ! CALL histwrite(nid_tra,"DMSO_p_dmsoh",itra,zx_tmp_3d, |
---|
319 | ! . iim*(jjm+1)*klev,ndex) |
---|
320 | ! |
---|
321 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,ASMSAM_p_dmsooh(1,1), |
---|
322 | ! . zx_tmp_3d) |
---|
323 | ! CALL histwrite(nid_tra,"ASMSAM_p_dmsooh",itra,zx_tmp_3d, |
---|
324 | ! . iim*(jjm+1)*klev,ndex) |
---|
325 | ! |
---|
326 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,ASSO4M_p_so2oh(1,1), |
---|
327 | ! . zx_tmp_3d) |
---|
328 | ! CALL histwrite(nid_tra,"ASSO4M_p_so2oh",itra,zx_tmp_3d, |
---|
329 | ! . iim*(jjm+1)*klev,ndex) |
---|
330 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,ASSO4M_p_so2h2o2(1,1), |
---|
331 | ! . zx_tmp_3d) |
---|
332 | ! CALL histwrite(nid_tra,"ASSO4M_p_so2h2o2",itra,zx_tmp_3d, |
---|
333 | ! . iim*(jjm+1)*klev,ndex) |
---|
334 | ! |
---|
335 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,ASSO4M_p_so2o3(1,1), |
---|
336 | ! . zx_tmp_3d) |
---|
337 | ! CALL histwrite(nid_tra,"ASSO4M_p_so2o3",itra,zx_tmp_3d, |
---|
338 | ! . iim*(jjm+1)*klev,ndex) |
---|
339 | ! |
---|
340 | !c closing the sulfur budget |
---|
341 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1, wet3d_so2(1,1), zx_tmp_3d) |
---|
342 | ! CALL histwrite(nid_tra,"Wet3D_SO2",itra,zx_tmp_3d, |
---|
343 | ! . iim*(jjm+1)*klev,ndex) |
---|
344 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1, wet3d_dms(1,1), zx_tmp_3d) |
---|
345 | ! CALL histwrite(nid_tra,"Wet3D_DMS",itra,zx_tmp_3d, |
---|
346 | ! . iim*(jjm+1)*klev,ndex) |
---|
347 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1, wet3d_hno3(1,1), zx_tmp_3d) |
---|
348 | ! CALL histwrite(nid_tra,"Wet3D_HNO3",itra,zx_tmp_3d, |
---|
349 | ! . iim*(jjm+1)*klev,ndex) |
---|
350 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1, wet3d_h2o2(1,1), zx_tmp_3d) |
---|
351 | ! CALL histwrite(nid_tra,"Wet3D_H2O2",itra,zx_tmp_3d, |
---|
352 | ! . iim*(jjm+1)*klev,ndex) |
---|
353 | ! |
---|
354 | ! |
---|
355 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,PH_HIST(1,1), |
---|
356 | ! . zx_tmp_3d) |
---|
357 | ! CALL histwrite(nid_tra,"PH_HIST",itra,zx_tmp_3d, |
---|
358 | ! . iim*(jjm+1)*klev,ndex) |
---|
359 | !#endif |
---|
360 | ! |
---|
361 | !#ifdef INCA_NMHC |
---|
362 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,CO2_basprod(1,1), |
---|
363 | ! . zx_tmp_3d) |
---|
364 | ! CALL histwrite(nid_tra,"CO2_basprod",itra,zx_tmp_3d, |
---|
365 | ! . iim*(jjm+1)*klev,ndex) |
---|
366 | ! |
---|
367 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,CO2_nmhcprod(1,1), |
---|
368 | ! . zx_tmp_3d) |
---|
369 | ! CALL histwrite(nid_tra,"CO2_nmhcprod",itra,zx_tmp_3d, |
---|
370 | ! . iim*(jjm+1)*klev,ndex) |
---|
371 | ! |
---|
372 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,CO2_radicalprod(1,1), |
---|
373 | ! . zx_tmp_3d) |
---|
374 | ! CALL histwrite(nid_tra,"CO2_radicalprod",itra,zx_tmp_3d, |
---|
375 | ! . iim*(jjm+1)*klev,ndex) |
---|
376 | ! |
---|
377 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,hno3_prod(1,1), |
---|
378 | ! . zx_tmp_3d) |
---|
379 | ! CALL histwrite(nid_tra,"HNO3_prod",itra,zx_tmp_3d, |
---|
380 | ! . iim*(jjm+1)*klev,ndex) |
---|
381 | ! |
---|
382 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,hno3_loss(1,1), |
---|
383 | ! . zx_tmp_3d) |
---|
384 | ! CALL histwrite(nid_tra,"HNO3_loss",itra,zx_tmp_3d, |
---|
385 | ! . iim*(jjm+1)*klev,ndex) |
---|
386 | ! |
---|
387 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,co_prod(1,1), |
---|
388 | ! . zx_tmp_3d) |
---|
389 | ! CALL histwrite(nid_tra,"CO_prod",itra,zx_tmp_3d, |
---|
390 | ! . iim*(jjm+1)*klev,ndex) |
---|
391 | ! |
---|
392 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,co_loss(1,1), |
---|
393 | ! . zx_tmp_3d) |
---|
394 | ! CALL histwrite(nid_tra,"CO_loss",itra,zx_tmp_3d, |
---|
395 | ! . iim*(jjm+1)*klev,ndex) |
---|
396 | ! |
---|
397 | !#endif |
---|
398 | ! |
---|
399 | !! Fin ajout Anne |
---|
400 | |
---|
401 | ! ... Special section for daytime averaging |
---|
402 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,day_cnt(1,1), |
---|
403 | ! . zx_tmp_3d) |
---|
404 | ! CALL histwrite(nid_tra,"day_cnt",itau_w,zx_tmp_3d, |
---|
405 | ! . iim*(jjm+1)*klev,ndex3d) |
---|
406 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,no_daytime(1,1), |
---|
407 | ! . zx_tmp_3d) |
---|
408 | ! CALL histwrite(nid_tra,"NO_day",itau_w,zx_tmp_3d, |
---|
409 | ! . iim*(jjm+1)*klev,ndex3d) |
---|
410 | |
---|
411 | !#endif |
---|
412 | #else |
---|
413 | |
---|
414 | C abder |
---|
415 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,yu1,zx_tmp_2d) |
---|
416 | CALL histwrite(nid_tra,"pyu1",itau_w,zx_tmp_2d, |
---|
417 | s iim*(jjm+1),ndex2d) |
---|
418 | |
---|
419 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,yv1,zx_tmp_2d) |
---|
420 | CALL histwrite(nid_tra,"pyv1",itau_w,zx_tmp_2d, |
---|
421 | s iim*(jjm+1),ndex2d) |
---|
422 | |
---|
423 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,pftsol1,zx_tmp_2d) |
---|
424 | CALL histwrite(nid_tra,"ftsol1",itau_w,zx_tmp_2d, |
---|
425 | s iim*(jjm+1),ndex2d) |
---|
426 | |
---|
427 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,pftsol2,zx_tmp_2d) |
---|
428 | CALL histwrite(nid_tra,"ftsol2",itau_w,zx_tmp_2d, |
---|
429 | s iim*(jjm+1),ndex2d) |
---|
430 | |
---|
431 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,pftsol3,zx_tmp_2d) |
---|
432 | CALL histwrite(nid_tra,"ftsol3",itau_w,zx_tmp_2d, |
---|
433 | s iim*(jjm+1),ndex2d) |
---|
434 | |
---|
435 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,pftsol4,zx_tmp_2d) |
---|
436 | CALL histwrite(nid_tra,"ftsol4",itau_w,zx_tmp_2d, |
---|
437 | s iim*(jjm+1),ndex2d) |
---|
438 | |
---|
439 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,ppsrf1,zx_tmp_2d) |
---|
440 | CALL histwrite(nid_tra,"psrf1",itau_w,zx_tmp_2d, |
---|
441 | s iim*(jjm+1),ndex2d) |
---|
442 | |
---|
443 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,ppsrf2,zx_tmp_2d) |
---|
444 | CALL histwrite(nid_tra,"psrf2",itau_w,zx_tmp_2d, |
---|
445 | s iim*(jjm+1),ndex2d) |
---|
446 | |
---|
447 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,ppsrf3,zx_tmp_2d) |
---|
448 | CALL histwrite(nid_tra,"psrf3",itau_w,zx_tmp_2d, |
---|
449 | s iim*(jjm+1),ndex2d) |
---|
450 | |
---|
451 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,ppsrf4,zx_tmp_2d) |
---|
452 | CALL histwrite(nid_tra,"psrf4",itau_w,zx_tmp_2d, |
---|
453 | s iim*(jjm+1),ndex2d) |
---|
454 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pplay,zx_tmp_3d) |
---|
455 | CALL histwrite(nid_tra,"pplay",itau_w,zx_tmp_3d, |
---|
456 | . iim*(jjm+1)*klev,ndex3d) |
---|
457 | |
---|
458 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,t_seri,zx_tmp_3d) |
---|
459 | CALL histwrite(nid_tra,"t",itau_w,zx_tmp_3d, |
---|
460 | . iim*(jjm+1)*klev,ndex3d) |
---|
461 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pmfu,zx_tmp_3d) |
---|
462 | CALL histwrite(nid_tra,"mfu",itau_w,zx_tmp_3d, |
---|
463 | . iim*(jjm+1)*klev,ndex3d) |
---|
464 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pmfd,zx_tmp_3d) |
---|
465 | CALL histwrite(nid_tra,"mfd",itau_w,zx_tmp_3d, |
---|
466 | . iim*(jjm+1)*klev,ndex3d) |
---|
467 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pen_u,zx_tmp_3d) |
---|
468 | CALL histwrite(nid_tra,"en_u",itau_w,zx_tmp_3d, |
---|
469 | . iim*(jjm+1)*klev,ndex3d) |
---|
470 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pen_d,zx_tmp_3d) |
---|
471 | CALL histwrite(nid_tra,"en_d",itau_w,zx_tmp_3d, |
---|
472 | . iim*(jjm+1)*klev,ndex3d) |
---|
473 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pde_d,zx_tmp_3d) |
---|
474 | CALL histwrite(nid_tra,"de_d",itau_w,zx_tmp_3d, |
---|
475 | . iim*(jjm+1)*klev,ndex3d) |
---|
476 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pde_u,zx_tmp_3d) |
---|
477 | CALL histwrite(nid_tra,"de_u",itau_w,zx_tmp_3d, |
---|
478 | . iim*(jjm+1)*klev,ndex3d) |
---|
479 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,coefh,zx_tmp_3d) |
---|
480 | CALL histwrite(nid_tra,"coefh",itau_w,zx_tmp_3d, |
---|
481 | . iim*(jjm+1)*klev,ndex3d) |
---|
482 | |
---|
483 | |
---|
484 | c abder |
---|
485 | #endif |
---|
486 | |
---|
487 | if (ok_sync) then |
---|
488 | call histsync(nid_tra) |
---|
489 | #ifdef INCA_AER |
---|
490 | call histsync(nid_tra2) |
---|
491 | call histsync(nid_tra3) |
---|
492 | #endif |
---|
493 | endif |
---|
494 | |
---|
495 | |
---|