1 | c |
---|
2 | c $Header$ |
---|
3 | c |
---|
4 | IF (ok_mensuel) THEN |
---|
5 | c |
---|
6 | ndex2d = 0 |
---|
7 | ndex3d = 0 |
---|
8 | |
---|
9 | itau_w = itau_phy + itap |
---|
10 | |
---|
11 | c |
---|
12 | IF(type_run.EQ."CLIM".OR.type_run.EQ."ENSP") THEN |
---|
13 | c |
---|
14 | IF(lev_histmth.GE.1) THEN |
---|
15 | c |
---|
16 | c Champs 2D: |
---|
17 | c |
---|
18 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,pphis,zx_tmp_2d) |
---|
19 | CALL histwrite_phy(nid_mth,"phis",itau_w,pphis) |
---|
20 | C |
---|
21 | cIM 310804 CALL gr_fi_ecrit(1,klon,iim,jjmp1,paire,zx_tmp_2d) |
---|
22 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,airephy,zx_tmp_2d) |
---|
23 | CALL histwrite_phy(nid_mth,"aire",itau_w,airephy) |
---|
24 | c |
---|
25 | zx_tmp_fi2d(1 : klon) = pctsrf(1 : klon, is_ter)* 100. |
---|
26 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
27 | CALL histwrite_phy(nid_mth,"pourc_"//clnsurf(is_ter),itau_w, |
---|
28 | $ zx_tmp_fi2d) |
---|
29 | c |
---|
30 | zx_tmp_fi2d(1 : klon) = pctsrf(1 : klon, is_ter) |
---|
31 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
32 | CALL histwrite_phy(nid_mth,"fract_"//clnsurf(is_ter),itau_w, |
---|
33 | $ zx_tmp_fi2d) |
---|
34 | c |
---|
35 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, slp,zx_tmp_2d) |
---|
36 | CALL histwrite_phy(nid_mth,"slp",itau_w,slp) |
---|
37 | |
---|
38 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxtsol,zx_tmp_2d) |
---|
39 | CALL histwrite_phy(nid_mth,"tsol",itau_w,zxtsol) |
---|
40 | c |
---|
41 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zt2m,zx_tmp_2d) |
---|
42 | CALL histwrite_phy(nid_mth,"t2m",itau_w,zt2m) |
---|
43 | c |
---|
44 | c ENSEMBLES BEG |
---|
45 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
46 | CALL histwrite_phy(nid_mth,"t2m_min",itau_w,zt2m) |
---|
47 | c |
---|
48 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
49 | CALL histwrite_phy(nid_mth,"t2m_max",itau_w,zt2m) |
---|
50 | c |
---|
51 | c CALL gr_fi_ecrit(1,klon,iim,jjmp1,ftsoil(:,1,is_ter),zx_tmp_2d) |
---|
52 | c CALL gr_fi_ecrit(1,klon,iim,jjmp1,ftsol(:,is_ter),zx_tmp_2d) |
---|
53 | c CALL gr_fi_ecrit(1,klon,iim,jjmp1,ztsol,zx_tmp_2d) |
---|
54 | c CALL histwrite_phy(nid_mth,"tsoil",itau_w,zx_tmp_2d, |
---|
55 | c . iim*jjmp1,ndex2d) |
---|
56 | c |
---|
57 | DO i=1, klon |
---|
58 | zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i)) |
---|
59 | ENDDO |
---|
60 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
61 | CALL histwrite_phy(nid_mth,"wind10m",itau_w,zx_tmp_fi2d) |
---|
62 | c |
---|
63 | DO i = 1, klon |
---|
64 | zx_tmp_fi2d(i) = pctsrf(i,is_sic) |
---|
65 | ENDDO |
---|
66 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
67 | CALL histwrite_phy(nid_mth,"sicf",itau_w,zx_tmp_fi2d) |
---|
68 | c |
---|
69 | c CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d) |
---|
70 | c CALL histwrite_phy(nid_mth,"temp",itau_w,zx_tmp_3d, |
---|
71 | c . iim*jjmp1*klev,ndex3d) |
---|
72 | c |
---|
73 | c ENSEMBLES END |
---|
74 | c |
---|
75 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zq2m,zx_tmp_2d) |
---|
76 | CALL histwrite_phy(nid_mth,"q2m",itau_w,zq2m) |
---|
77 | c |
---|
78 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zu10m,zx_tmp_2d) |
---|
79 | CALL histwrite_phy(nid_mth,"u10m",itau_w,zu10m) |
---|
80 | C |
---|
81 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zv10m,zx_tmp_2d) |
---|
82 | CALL histwrite_phy(nid_mth,"v10m",itau_w,zv10m) |
---|
83 | C |
---|
84 | DO i = 1, klon |
---|
85 | zx_tmp_fi2d(i) = paprs(i,1) |
---|
86 | ENDDO |
---|
87 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
88 | CALL histwrite_phy(nid_mth,"psol",itau_w,zx_tmp_fi2d) |
---|
89 | c |
---|
90 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxqsurf,zx_tmp_2d) |
---|
91 | CALL histwrite_phy(nid_mth,"qsurf",itau_w,zxqsurf) |
---|
92 | c |
---|
93 | if (.not. ok_veget) then |
---|
94 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, qsol,zx_tmp_2d) |
---|
95 | CALL histwrite_phy(nid_mth,"qsol",itau_w,qsol) |
---|
96 | endif |
---|
97 | c |
---|
98 | DO i = 1, klon |
---|
99 | zx_tmp_fi2d(i) = rain_fall(i) + snow_fall(i) |
---|
100 | ENDDO |
---|
101 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
102 | CALL histwrite_phy(nid_mth,"precip",itau_w,zx_tmp_fi2d) |
---|
103 | c |
---|
104 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, nday_rain,zx_tmp_2d) |
---|
105 | CALL histwrite_phy(nid_mth,"ndayrain",itau_w,nday_rain) |
---|
106 | c |
---|
107 | DO i = 1, klon |
---|
108 | zx_tmp_fi2d(i) = rain_lsc(i) + snow_lsc(i) |
---|
109 | ENDDO |
---|
110 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
111 | CALL histwrite_phy(nid_mth,"plul",itau_w,zx_tmp_fi2d) |
---|
112 | c |
---|
113 | DO i = 1, klon |
---|
114 | zx_tmp_fi2d(i) = rain_con(i) + snow_con(i) |
---|
115 | ENDDO |
---|
116 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
117 | CALL histwrite_phy(nid_mth,"pluc",itau_w,zx_tmp_fi2d) |
---|
118 | c |
---|
119 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_fall,zx_tmp_2d) |
---|
120 | CALL histwrite_phy(nid_mth,"snow",itau_w,snow_fall) |
---|
121 | c |
---|
122 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zsnow_mass,zx_tmp_2d) |
---|
123 | c CALL histwrite(nid_mth,"snow_mass",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
124 | c . ndex2d) |
---|
125 | c |
---|
126 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, evap,zx_tmp_2d) |
---|
127 | CALL histwrite_phy(nid_mth,"evap",itau_w,evap) |
---|
128 | c |
---|
129 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw,zx_tmp_2d) |
---|
130 | CALL histwrite_phy(nid_mth,"tops",itau_w,topsw) |
---|
131 | c |
---|
132 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw0,zx_tmp_2d) |
---|
133 | CALL histwrite_phy(nid_mth,"tops0",itau_w,topsw0) |
---|
134 | c |
---|
135 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw,zx_tmp_2d) |
---|
136 | CALL histwrite_phy(nid_mth,"topl",itau_w,toplw) |
---|
137 | c |
---|
138 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw0,zx_tmp_2d) |
---|
139 | CALL histwrite_phy(nid_mth,"topl0",itau_w,toplw0) |
---|
140 | c |
---|
141 | zx_tmp_fi2d(1 : klon) = swup ( 1 : klon, klevp1 ) |
---|
142 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
143 | CALL histwrite_phy(nid_mth, "SWupTOA",itau_w,zx_tmp_fi2d) |
---|
144 | c |
---|
145 | c |
---|
146 | zx_tmp_fi2d(1 : klon) = swup0 ( 1 : klon, klevp1 ) |
---|
147 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
148 | CALL histwrite_phy(nid_mth, "SWupTOAclr",itau_w,zx_tmp_fi2d) |
---|
149 | c |
---|
150 | zx_tmp_fi2d(1 : klon) = swdn ( 1 : klon, klevp1 ) |
---|
151 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
152 | CALL histwrite_phy(nid_mth, "SWdnTOA",itau_w,zx_tmp_fi2d) |
---|
153 | c |
---|
154 | zx_tmp_fi2d(1 : klon) = swdn0 ( 1 : klon, klevp1 ) |
---|
155 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
156 | CALL histwrite_phy(nid_mth, "SWdnTOAclr",itau_w,zx_tmp_fi2d) |
---|
157 | c |
---|
158 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, SWup200,zx_tmp_2d) |
---|
159 | CALL histwrite_phy(nid_mth,"SWup200",itau_w,SWup200) |
---|
160 | c |
---|
161 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, SWup200clr,zx_tmp_2d) |
---|
162 | CALL histwrite_phy(nid_mth,"SWup200clr",itau_w,SWup200clr) |
---|
163 | c |
---|
164 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, SWdn200,zx_tmp_2d) |
---|
165 | CALL histwrite_phy(nid_mth,"SWdn200",itau_w,SWdn200) |
---|
166 | c |
---|
167 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, SWdn200clr,zx_tmp_2d) |
---|
168 | CALL histwrite_phy(nid_mth,"SWdn200clr",itau_w,SWdn200clr) |
---|
169 | c |
---|
170 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, LWup200,zx_tmp_2d) |
---|
171 | CALL histwrite_phy(nid_mth,"LWup200",itau_w,LWup200) |
---|
172 | c |
---|
173 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, LWup200clr,zx_tmp_2d) |
---|
174 | CALL histwrite_phy(nid_mth,"LWup200clr",itau_w,LWup200clr) |
---|
175 | c |
---|
176 | zx_tmp_fi2d(1:klon)=-1*LWdn200(1:klon) |
---|
177 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
178 | CALL histwrite_phy(nid_mth,"LWdn200",itau_w,zx_tmp_fi2d) |
---|
179 | c |
---|
180 | zx_tmp_fi2d(1:klon)=-1*LWdn200clr(1:klon) |
---|
181 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
182 | CALL histwrite_phy(nid_mth,"LWdn200clr",itau_w,zx_tmp_fi2d) |
---|
183 | c |
---|
184 | c200 END |
---|
185 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw,zx_tmp_2d) |
---|
186 | CALL histwrite_phy(nid_mth,"sols",itau_w,solsw) |
---|
187 | c |
---|
188 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw0,zx_tmp_2d) |
---|
189 | CALL histwrite_phy(nid_mth,"sols0",itau_w,solsw0) |
---|
190 | c |
---|
191 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw,zx_tmp_2d) |
---|
192 | CALL histwrite_phy(nid_mth,"soll",itau_w,sollw) |
---|
193 | c |
---|
194 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, radsol,zx_tmp_2d) |
---|
195 | CALL histwrite_phy(nid_mth,"radsol",itau_w,radsol) |
---|
196 | c |
---|
197 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw0,zx_tmp_2d) |
---|
198 | CALL histwrite_phy(nid_mth,"soll0",itau_w,sollw0) |
---|
199 | c |
---|
200 | c zx_tmp_fi2d(1 : klon) = ZFSUP( 1 : klon, 1) |
---|
201 | zx_tmp_fi2d(1 : klon) = swup ( 1 : klon, 1 ) |
---|
202 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
203 | CALL histwrite_phy(nid_mth, "SWupSFC",itau_w,zx_tmp_fi2d) |
---|
204 | c |
---|
205 | c zx_tmp_fi2d(1 : klon) = ZFSUP0( 1 : klon, 1) |
---|
206 | zx_tmp_fi2d(1 : klon) = swup0 ( 1 : klon, 1 ) |
---|
207 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
208 | CALL histwrite_phy(nid_mth, "SWupSFCclr",itau_w,zx_tmp_fi2d) |
---|
209 | c |
---|
210 | c zx_tmp_fi2d(1 : klon) = ZFSDN( 1 : klon, 1) |
---|
211 | zx_tmp_fi2d(1 : klon) = swdn ( 1 : klon, 1 ) |
---|
212 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
213 | CALL histwrite_phy(nid_mth, "SWdnSFC",itau_w,zx_tmp_fi2d) |
---|
214 | c |
---|
215 | c zx_tmp_fi2d(1 : klon) = ZFSDN0( 1 : klon, 1) |
---|
216 | zx_tmp_fi2d(1 : klon) = swdn0 ( 1 : klon, 1 ) |
---|
217 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
218 | CALL histwrite_phy(nid_mth, "SWdnSFCclr",itau_w,zx_tmp_fi2d) |
---|
219 | c |
---|
220 | cIM 080904 zx_tmp_fi2d(1:klon)=sollw(1:klon)+sollwdown(1:klon) |
---|
221 | cIM 130904 zx_tmp_fi2d(1:klon)=sollw(1:klon)-sollwdown(1:klon) |
---|
222 | zx_tmp_fi2d(1:klon)=sollwdown(1:klon)-sollw(1:klon) |
---|
223 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
224 | CALL histwrite_phy(nid_mth,"LWupSFC",itau_w,zx_tmp_fi2d) |
---|
225 | c |
---|
226 | DO i=1, klon |
---|
227 | sollwdownclr(i)=-1.*lwdn0(i,1) |
---|
228 | ENDDO !i=1, klon |
---|
229 | |
---|
230 | cIM 080904 zx_tmp_fi2d(1:klon)=sollw0(1:klon)+sollwdownclr(1:klon) |
---|
231 | cIM 130904 zx_tmp_fi2d(1:klon)=sollw0(1:klon)-sollwdownclr(1:klon) |
---|
232 | zx_tmp_fi2d(1:klon)=sollwdownclr(1:klon)-sollw0(1:klon) |
---|
233 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
234 | CALL histwrite_phy(nid_mth,"LWupSFCclr",itau_w,zx_tmp_fi2d) |
---|
235 | c |
---|
236 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
237 | CALL histwrite_phy(nid_mth,"LWdnSFC",itau_w,sollwdown) |
---|
238 | c |
---|
239 | c DO i=1, klon |
---|
240 | cIM 080904 sollwdownclr(i)=lwdn0(i,1) |
---|
241 | c sollwdownclr(i)=-1.*lwdn0(i,1) |
---|
242 | c ENDDO !i=1, klon |
---|
243 | c |
---|
244 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdownclr,zx_tmp_2d) |
---|
245 | CALL histwrite_phy(nid_mth,"LWdnSFCclr",itau_w,sollwdownclr) |
---|
246 | c |
---|
247 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, bils,zx_tmp_2d) |
---|
248 | CALL histwrite_phy(nid_mth,"bils",itau_w,bils) |
---|
249 | c |
---|
250 | zx_tmp_fi2d(1:klon)=-1*sens(1:klon) |
---|
251 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, sens,zx_tmp_2d) |
---|
252 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
253 | CALL histwrite_phy(nid_mth,"sens",itau_w,zx_tmp_fi2d) |
---|
254 | c |
---|
255 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, fder,zx_tmp_2d) |
---|
256 | CALL histwrite_phy(nid_mth,"fder",itau_w,fder) |
---|
257 | c |
---|
258 | c |
---|
259 | c DO i = 1, klon |
---|
260 | c zx_tmp_fi2d(i) = fluxu(i,1) |
---|
261 | c ENDDO |
---|
262 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
263 | c CALL histwrite(nid_mth,"frtu",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
264 | c |
---|
265 | c DO i = 1, klon |
---|
266 | c zx_tmp_fi2d(i) = fluxv(i,1) |
---|
267 | c ENDDO |
---|
268 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
269 | c CALL histwrite(nid_mth,"frtv",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
270 | c |
---|
271 | c |
---|
272 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxffonte,zx_tmp_2d) |
---|
273 | CALL histwrite_phy(nid_mth,"ffonte",itau_w,zxffonte) |
---|
274 | c |
---|
275 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxfqcalving,zx_tmp_2d) |
---|
276 | CALL histwrite_phy(nid_mth,"fqcalving",itau_w,zxfqcalving) |
---|
277 | |
---|
278 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxfqfonte,zx_tmp_2d) |
---|
279 | CALL histwrite_phy(nid_mth,"fqfonte",itau_w,zxfqfonte) |
---|
280 | |
---|
281 | DO nsrf = 1, nbsrf |
---|
282 | zx_tmp_fi2d(1 : klon) = fluxu( 1 : klon, 1, nsrf) |
---|
283 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
284 | CALL histwrite_phy(nid_mth,"taux_"//clnsurf(nsrf),itau_w, |
---|
285 | $ zx_tmp_fi2d) |
---|
286 | C |
---|
287 | zx_tmp_fi2d(1 : klon) = fluxv( 1 : klon, 1, nsrf) |
---|
288 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
289 | CALL histwrite_phy(nid_mth,"tauy_"//clnsurf(nsrf),itau_w, |
---|
290 | $ zx_tmp_fi2d) |
---|
291 | ENDDO |
---|
292 | c |
---|
293 | DO nsrf = 1, nbsrf |
---|
294 | CYYY |
---|
295 | IF(nsrf.GT.2) THEN |
---|
296 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf)*100. |
---|
297 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
298 | CALL histwrite_phy(nid_mth,"pourc_"//clnsurf(nsrf),itau_w, |
---|
299 | & zx_tmp_fi2d) |
---|
300 | c |
---|
301 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf) |
---|
302 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
303 | CALL histwrite_phy(nid_mth,"fract_"//clnsurf(nsrf),itau_w, |
---|
304 | $ zx_tmp_fi2d) |
---|
305 | ENDIF !nsrf.GT.2 |
---|
306 | C |
---|
307 | zx_tmp_fi2d(1 : klon) = ftsol( 1 : klon, nsrf) |
---|
308 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
309 | CALL histwrite_phy(nid_mth,"tsol_"//clnsurf(nsrf),itau_w, |
---|
310 | $ zx_tmp_fi2d) |
---|
311 | C |
---|
312 | zx_tmp_fi2d(1 : klon) = fluxt( 1 : klon, 1, nsrf) |
---|
313 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
314 | CALL histwrite_phy(nid_mth,"sens_"//clnsurf(nsrf),itau_w, |
---|
315 | $ zx_tmp_fi2d) |
---|
316 | C |
---|
317 | zx_tmp_fi2d(1 : klon) = fluxlat( 1 : klon, nsrf) |
---|
318 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
319 | CALL histwrite_phy(nid_mth,"lat_"//clnsurf(nsrf),itau_w, |
---|
320 | $ zx_tmp_fi2d) |
---|
321 | C |
---|
322 | zx_tmp_fi2d(1 : klon) = fsollw( 1 : klon, nsrf) |
---|
323 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
324 | CALL histwrite_phy(nid_mth,"flw_"//clnsurf(nsrf),itau_w, |
---|
325 | $ zx_tmp_fi2d) |
---|
326 | c |
---|
327 | zx_tmp_fi2d(1 : klon) = fsolsw( 1 : klon, nsrf) |
---|
328 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
329 | CALL histwrite_phy(nid_mth,"fsw_"//clnsurf(nsrf),itau_w, |
---|
330 | $ zx_tmp_fi2d) |
---|
331 | C |
---|
332 | zx_tmp_fi2d(1 : klon) = wfbils( 1 : klon, nsrf) |
---|
333 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
334 | CALL histwrite_phy(nid_mth,"wbils_"//clnsurf(nsrf),itau_w, |
---|
335 | $ zx_tmp_fi2d) |
---|
336 | C |
---|
337 | zx_tmp_fi2d(1 : klon) = wfbilo( 1 : klon, nsrf) |
---|
338 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
339 | CALL histwrite_phy(nid_mth,"wbilo_"//clnsurf(nsrf),itau_w, |
---|
340 | $ zx_tmp_fi2d) |
---|
341 | C |
---|
342 | IF(1.EQ.0) THEN |
---|
343 | C |
---|
344 | zx_tmp_fi2d(1:klon) = fevap(1:klon,nsrf)*pctsrf(1:klon,nsrf) |
---|
345 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
346 | CALL histwrite_phy(nid_mth,"evapour_"//clnsurf(nsrf),itau_w, |
---|
347 | $ zx_tmp_fi2d) |
---|
348 | C |
---|
349 | zx_tmp_fi2d(1:klon) = (rain_fall(1:klon) + snow_fall(1:klon)) |
---|
350 | $ *pctsrf(1:klon,nsrf) |
---|
351 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
352 | CALL histwrite_phy(nid_mth,"prepour_"//clnsurf(nsrf),itau_w, |
---|
353 | $ zx_tmp_fi2d) |
---|
354 | C |
---|
355 | ENDIF !(1.EQ.0) THEN |
---|
356 | C |
---|
357 | END DO |
---|
358 | c |
---|
359 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragm,zx_tmp_2d) |
---|
360 | CALL histwrite_phy(nid_mth,"cdrm",itau_w,cdragm) |
---|
361 | c |
---|
362 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragh,zx_tmp_2d) |
---|
363 | CALL histwrite_phy(nid_mth,"cdrh",itau_w,cdragh) |
---|
364 | c |
---|
365 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldl,zx_tmp_2d) |
---|
366 | CALL histwrite_phy(nid_mth,"cldl",itau_w,cldl) |
---|
367 | c |
---|
368 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldm,zx_tmp_2d) |
---|
369 | CALL histwrite_phy(nid_mth,"cldm",itau_w,cldm) |
---|
370 | c |
---|
371 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldh,zx_tmp_2d) |
---|
372 | CALL histwrite_phy(nid_mth,"cldh",itau_w,cldh) |
---|
373 | c |
---|
374 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldt,zx_tmp_2d) |
---|
375 | CALL histwrite_phy(nid_mth,"cldt",itau_w,cldt) |
---|
376 | c |
---|
377 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldq,zx_tmp_2d) |
---|
378 | CALL histwrite_phy(nid_mth,"cldq",itau_w,cldq) |
---|
379 | c |
---|
380 | zx_tmp_fi2d(1:klon) = flwp(1:klon) |
---|
381 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
382 | CALL histwrite_phy(nid_mth,"lwp",itau_w,zx_tmp_fi2d) |
---|
383 | c |
---|
384 | zx_tmp_fi2d(1:klon) = fiwp(1:klon) |
---|
385 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
386 | CALL histwrite_phy(nid_mth,"iwp",itau_w,zx_tmp_fi2d) |
---|
387 | c |
---|
388 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, ue,zx_tmp_2d) |
---|
389 | CALL histwrite_phy(nid_mth,"ue",itau_w,ue) |
---|
390 | c |
---|
391 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, ve,zx_tmp_2d) |
---|
392 | CALL histwrite_phy(nid_mth,"ve",itau_w,ve) |
---|
393 | c |
---|
394 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, uq,zx_tmp_2d) |
---|
395 | CALL histwrite_phy(nid_mth,"uq",itau_w,uq) |
---|
396 | c |
---|
397 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, vq,zx_tmp_2d) |
---|
398 | CALL histwrite_phy(nid_mth,"vq",itau_w,vq) |
---|
399 | cKE43 |
---|
400 | IF (iflag_con.GE.3) THEN ! sb |
---|
401 | c |
---|
402 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cape,zx_tmp_2d) |
---|
403 | CALL histwrite_phy(nid_mth,"cape",itau_w,cape) |
---|
404 | c |
---|
405 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,pbase,zx_tmp_2d) |
---|
406 | CALL histwrite_phy(nid_mth,"pbase",itau_w,pbase) |
---|
407 | c |
---|
408 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,ema_pct,zx_tmp_2d) |
---|
409 | CALL histwrite_phy(nid_mth,"ptop",itau_w,ema_pct) |
---|
410 | c |
---|
411 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,ema_cbmf,zx_tmp_2d) |
---|
412 | CALL histwrite_phy(nid_mth,"fbase",itau_w,ema_cbmf) |
---|
413 | c |
---|
414 | c34EK |
---|
415 | c |
---|
416 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, prw,zx_tmp_2d) |
---|
417 | CALL histwrite_phy(nid_mth,"prw",itau_w,prw) |
---|
418 | c |
---|
419 | ENDIF !iflag_con.GE.3 |
---|
420 | c |
---|
421 | c |
---|
422 | cIM cf. AM 081204 BEG |
---|
423 | cHBTM2 |
---|
424 | c |
---|
425 | c |
---|
426 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_pblh,zx_tmp_2d) |
---|
427 | CALL histwrite_phy(nid_mth,"s_pblh",itau_w,s_pblh) |
---|
428 | c |
---|
429 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_pblt,zx_tmp_2d) |
---|
430 | CALL histwrite_phy(nid_mth,"s_pblt",itau_w,s_pblt) |
---|
431 | c |
---|
432 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_lcl,zx_tmp_2d) |
---|
433 | CALL histwrite_phy(nid_mth,"s_lcl",itau_w,s_lcl) |
---|
434 | c |
---|
435 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_capCL,zx_tmp_2d) |
---|
436 | CALL histwrite_phy(nid_mth,"s_capCL",itau_w,s_capCL) |
---|
437 | c |
---|
438 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_oliqCL,zx_tmp_2d) |
---|
439 | CALL histwrite_phy(nid_mth,"s_oliqCL",itau_w,s_oliqCL) |
---|
440 | c |
---|
441 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_cteiCL,zx_tmp_2d) |
---|
442 | CALL histwrite_phy(nid_mth,"s_cteiCL",itau_w,s_cteiCL) |
---|
443 | c |
---|
444 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_therm,zx_tmp_2d) |
---|
445 | CALL histwrite_phy(nid_mth,"s_therm",itau_w,s_therm) |
---|
446 | c |
---|
447 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_trmb1,zx_tmp_2d) |
---|
448 | CALL histwrite_phy(nid_mth,"s_trmb1",itau_w,s_trmb1) |
---|
449 | c |
---|
450 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_trmb2,zx_tmp_2d) |
---|
451 | CALL histwrite_phy(nid_mth,"s_trmb2",itau_w,s_trmb2) |
---|
452 | c |
---|
453 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_trmb3,zx_tmp_2d) |
---|
454 | CALL histwrite_phy(nid_mth,"s_trmb3",itau_w,s_trmb3) |
---|
455 | c |
---|
456 | cIM cf. AM 081204 END |
---|
457 | c |
---|
458 | c Champs interpolles sur des niveaux de pression |
---|
459 | DO k=1, nlevSTD |
---|
460 | c |
---|
461 | c bb=clevSTD(k) |
---|
462 | c |
---|
463 | c IF(k.GE.2) THEN |
---|
464 | IF(k.GE.2.AND.k.LE.12) bb2=clevSTD(k) |
---|
465 | IF(k.GE.13.AND.k.LE.17) bb3=clevSTD(k) |
---|
466 | c aa=clevSTD(k) |
---|
467 | c bb=aa(1:lnblnk1(aa)) |
---|
468 | c ENDIF |
---|
469 | c |
---|
470 | IF(bb2.EQ."850".OR.bb2.EQ."700".OR. |
---|
471 | $ bb2.EQ."500".OR.bb2.EQ."200") THEN |
---|
472 | c |
---|
473 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,usumSTD(:,k,2),zx_tmp_2d) |
---|
474 | CALL histwrite_phy(nid_mth,"u"//bb2,itau_w,usumSTD(:,k,2)) |
---|
475 | c |
---|
476 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,vsumSTD(:,k,2),zx_tmp_2d) |
---|
477 | CALL histwrite_phy(nid_mth,"v"//bb2,itau_w,vsumSTD(:,k,2)) |
---|
478 | c |
---|
479 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,wsumSTD(:,k,2),zx_tmp_2d) |
---|
480 | CALL histwrite_phy(nid_mth,"w"//bb2,itau_w,wsumSTD(:,k,2)) |
---|
481 | c |
---|
482 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,phisumSTD(:,k,2),zx_tmp_2d) |
---|
483 | CALL histwrite_phy(nid_mth,"phi"//bb2,itau_w,phisumSTD(:,k,2)) |
---|
484 | c |
---|
485 | ENDIF !(bb2.EQ."850".OR.bb2.EQ."700".OR. |
---|
486 | ENDDO !nlevSTD |
---|
487 | c |
---|
488 | DO i=1, klon |
---|
489 | IF (pctsrf(i,is_oce).GT.epsfra) THEN |
---|
490 | zx_tmp_fi2d(i) = fluxo(i) |
---|
491 | ELSE |
---|
492 | zx_tmp_fi2d(i) = 0. |
---|
493 | ENDIF |
---|
494 | ENDDO |
---|
495 | c |
---|
496 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
497 | CALL histwrite_phy(nid_mth,"fluxo",itau_w,zx_tmp_fi2d) |
---|
498 | c |
---|
499 | DO i=1, klon |
---|
500 | IF (pctsrf(i,is_sic).GT.epsfra) THEN |
---|
501 | zx_tmp_fi2d(i) = fluxg(i) |
---|
502 | ELSE |
---|
503 | zx_tmp_fi2d(i) = 0. |
---|
504 | ENDIF |
---|
505 | ENDDO |
---|
506 | c |
---|
507 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
508 | CALL histwrite_phy(nid_mth,"fluxg",itau_w,zx_tmp_fi2d) |
---|
509 | c |
---|
510 | DO i=1, klon |
---|
511 | IF (pctsrf(i,is_oce).GT.epsfra.OR. |
---|
512 | . pctsrf(i,is_sic).GT.epsfra) THEN |
---|
513 | zx_tmp_fi2d(i) = (ftsol(i, is_oce) * pctsrf(i,is_oce)+ |
---|
514 | . ftsol(i, is_sic) * pctsrf(i,is_sic))/ |
---|
515 | . (pctsrf(i,is_oce)+pctsrf(i,is_sic)) |
---|
516 | ELSE |
---|
517 | zx_tmp_fi2d(i) = 273.15 |
---|
518 | ENDIF |
---|
519 | ENDDO |
---|
520 | c |
---|
521 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
522 | CALL histwrite_phy(nid_mth,"t_oce_sic",itau_w,zx_tmp_fi2d) |
---|
523 | c |
---|
524 | IF (OCEAN.EQ.'force ') THEN |
---|
525 | c |
---|
526 | DO i=1, klon |
---|
527 | IF((pctsrf(i,is_oce).GT.epsfra).OR. |
---|
528 | . (pctsrf(i,is_sic).GT.epsfra)) THEN |
---|
529 | zx_tmp_fi2d(i) = (radsol(i) + fluxo(i))*pctsrf(i,is_oce)+ |
---|
530 | . fluxg(i)*pctsrf(i,is_sic) |
---|
531 | ELSE |
---|
532 | zx_tmp_fi2d(i) = 1.E+20 |
---|
533 | ENDIF |
---|
534 | ENDDO |
---|
535 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
536 | CALL histwrite_phy(nid_mth,"lmt_bils",itau_w,zx_tmp_fi2d) |
---|
537 | c |
---|
538 | ELSE IF (OCEAN.EQ.'slab ') THEN |
---|
539 | c |
---|
540 | DO i=1, klon |
---|
541 | IF((pctsrf(i,is_oce).GT.epsfra).OR. |
---|
542 | . (pctsrf(i,is_sic).GT.epsfra)) THEN |
---|
543 | zx_tmp_fi2d(i) = (radsol(i) + fluxo(i))*pctsrf(i,is_oce)+ |
---|
544 | . fluxg(i)*pctsrf(i,is_sic) |
---|
545 | ELSE |
---|
546 | zx_tmp_fi2d(i) = 1.E+20 |
---|
547 | ENDIF |
---|
548 | ENDDO |
---|
549 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
550 | CALL histwrite_phy(nid_mth,"slab_bils",itau_w,zx_tmp_fi2d) |
---|
551 | c |
---|
552 | DO i=1, klon |
---|
553 | IF(pctsrf(i,is_oce).GT.epsfra.OR. |
---|
554 | $ pctsrf(i,is_sic).GT.epsfra) THEN |
---|
555 | zx_tmp_fi2d(i)=tslab(i) |
---|
556 | ELSE |
---|
557 | zx_tmp_fi2d(i) = 1.E+20 |
---|
558 | ENDIF |
---|
559 | ENDDO !i=1, klon |
---|
560 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
561 | CALL histwrite_phy(nid_mth,"tslab",itau_w,zx_tmp_fi2d) |
---|
562 | c |
---|
563 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, seaice,zx_tmp_2d) |
---|
564 | CALL histwrite_phy(nid_mth,"seaice",itau_w,seaice) |
---|
565 | c |
---|
566 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, seaice/1000.,zx_tmp_2d) |
---|
567 | CALL histwrite_phy(nid_mth,"siceh",itau_w, seaice/1000.) |
---|
568 | c |
---|
569 | ENDIF !OCEAN.EQ.force/slab |
---|
570 | c |
---|
571 | ENDIF !lev_histmth.GE.1 |
---|
572 | c |
---|
573 | IF(lev_histmth.GE.2) THEN |
---|
574 | c |
---|
575 | c Champs 3D: |
---|
576 | C |
---|
577 | c |
---|
578 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, flwc,zx_tmp_3d) |
---|
579 | CALL histwrite_phy(nid_mth,"lwcon",itau_w,flwc) |
---|
580 | c |
---|
581 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, fiwc,zx_tmp_3d) |
---|
582 | CALL histwrite_phy(nid_mth,"iwcon",itau_w,fiwc) |
---|
583 | c |
---|
584 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d) |
---|
585 | CALL histwrite_phy(nid_mth,"temp",itau_w,t_seri) |
---|
586 | c |
---|
587 | c#ifdef histmthNMC |
---|
588 | c#include "write_histmthNMC.h" |
---|
589 | c#endif |
---|
590 | c |
---|
591 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, qx(1,1,ivap), zx_tmp_3d) |
---|
592 | CALL histwrite_phy(nid_mth,"ovap",itau_w,qx(:,:,ivap)) |
---|
593 | c |
---|
594 | c zx_tmp_fi3d(1:klon,1:klev)=qx(1:klon,1:klev,ivap)/ |
---|
595 | c . (1-qx(1:klon,1:klev,ivap)) |
---|
596 | c CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zx_tmp_fi3d, zx_tmp_3d) |
---|
597 | c CALL histwrite(nid_mth,"wvap",itau_w,zx_tmp_3d, |
---|
598 | c . iim*jjmp1*klev,ndex3d) |
---|
599 | c |
---|
600 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zphi, zx_tmp_3d) |
---|
601 | CALL histwrite_phy(nid_mth,"geop",itau_w,zphi) |
---|
602 | c |
---|
603 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, u_seri, zx_tmp_3d) |
---|
604 | CALL histwrite_phy(nid_mth,"vitu",itau_w,u_seri) |
---|
605 | c |
---|
606 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, v_seri, zx_tmp_3d) |
---|
607 | CALL histwrite_phy(nid_mth,"vitv",itau_w,v_seri) |
---|
608 | c |
---|
609 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, omega, zx_tmp_3d) |
---|
610 | CALL histwrite_phy(nid_mth,"vitw",itau_w,omega) |
---|
611 | c |
---|
612 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, pplay, zx_tmp_3d) |
---|
613 | CALL histwrite_phy(nid_mth,"pres",itau_w,pplay) |
---|
614 | c |
---|
615 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldfra, zx_tmp_3d) |
---|
616 | CALL histwrite_phy(nid_mth,"rneb",itau_w,cldfra) |
---|
617 | c |
---|
618 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, rnebcon, zx_tmp_3d) |
---|
619 | CALL histwrite_phy(nid_mth,"rnebcon",itau_w,rnebcon) |
---|
620 | c |
---|
621 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zx_rh, zx_tmp_3d) |
---|
622 | CALL histwrite_phy(nid_mth,"rhum",itau_w,zx_rh) |
---|
623 | |
---|
624 | DO k=1, klev |
---|
625 | DO i=1, klon |
---|
626 | cIM 151004 zx_tmp_fi3d(i,k)=MAX(wo(i,k),1.0e-12)*RG/46.6968 |
---|
627 | c $ /(paprs(i,k)-paprs(i,k+1)) |
---|
628 | c $ *(paprs(i,1)/101325.0) |
---|
629 | c zx_tmp2_fi3d(i,k)=MAX(wo(i,k)*1.0e+6,1.0e-6)*RG/46.6968 |
---|
630 | zx_tmp_fi3d(i,k)=wo(i,k)*RG/46.6968 |
---|
631 | $ /(paprs(i,k)-paprs(i,k+1)) |
---|
632 | $ *(paprs(i,1)/101325.0) |
---|
633 | ENDDO !i |
---|
634 | ENDDO !k |
---|
635 | c |
---|
636 | c CALL gr_fi_ecrit(klev,klon,iim,jjmp1, wo, zx_tmp_3d) |
---|
637 | c CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp2_fi3d,zx_tmp_3d) |
---|
638 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
639 | CALL histwrite_phy(nid_mth,"ozone",itau_w,zx_tmp_fi3d) |
---|
640 | c |
---|
641 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_t, zx_tmp_3d) |
---|
642 | CALL histwrite_phy(nid_mth,"dtphy",itau_w,d_t) |
---|
643 | c |
---|
644 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_qx(:,:,ivap), |
---|
645 | cym . zx_tmp_3d) |
---|
646 | CALL histwrite_phy(nid_mth,"dqphy",itau_w, d_qx(:,:,ivap)) |
---|
647 | cIM 22.03.04 END |
---|
648 | c |
---|
649 | ENDIF !lev_histmth.GE.2 |
---|
650 | c |
---|
651 | IF(lev_histmth.GE.3) THEN |
---|
652 | c |
---|
653 | DO nsrf=1, nbsrf |
---|
654 | c |
---|
655 | zx_tmp_fi2d(1 : klon) = falbe( 1 : klon, nsrf) |
---|
656 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
657 | CALL histwrite_phy(nid_mth,"albe_"//clnsurf(nsrf),itau_w, |
---|
658 | $ zx_tmp_fi2d) |
---|
659 | C |
---|
660 | zx_tmp_fi2d(1 : klon) = frugs( 1 : klon, nsrf) |
---|
661 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
662 | CALL histwrite_phy(nid_mth,"rugs_"//clnsurf(nsrf),itau_w, |
---|
663 | $ zx_tmp_fi2d) |
---|
664 | c |
---|
665 | zx_tmp_fi2d(1 : klon) = agesno( 1 : klon, nsrf) |
---|
666 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, agesno,zx_tmp_2d) |
---|
667 | CALL histwrite_phy(nid_mth,"ages_"//clnsurf(nsrf),itau_w |
---|
668 | $ ,zx_tmp_fi2d) |
---|
669 | c |
---|
670 | ENDDO !nsrf=1, nbsrf |
---|
671 | c |
---|
672 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, albsol,zx_tmp_2d) |
---|
673 | CALL histwrite_phy(nid_mth,"albs",itau_w,albsol) |
---|
674 | c |
---|
675 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, albsollw,zx_tmp_2d) |
---|
676 | CALL histwrite_phy(nid_mth,"albslw",itau_w,albsollw) |
---|
677 | c |
---|
678 | ENDIF !lev_histmth.GE.3 |
---|
679 | c |
---|
680 | c |
---|
681 | IF(lev_histmth.GE.4) THEN |
---|
682 | c |
---|
683 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, clwcon0, zx_tmp_3d) |
---|
684 | CALL histwrite_phy(nid_mth,"clwcon",itau_w,clwcon0) |
---|
685 | |
---|
686 | IF (iflag_con.GE.3) THEN |
---|
687 | c |
---|
688 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, Ma, zx_tmp_3d) |
---|
689 | CALL histwrite_phy(nid_mth,"Ma",itau_w,Ma) |
---|
690 | c |
---|
691 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, upwd, zx_tmp_3d) |
---|
692 | CALL histwrite_phy(nid_mth,"upwd",itau_w,upwd) |
---|
693 | c |
---|
694 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, dnwd, zx_tmp_3d) |
---|
695 | CALL histwrite_phy(nid_mth,"dnwd",itau_w,dnwd) |
---|
696 | c |
---|
697 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, dnwd0, zx_tmp_3d) |
---|
698 | CALL histwrite_phy(nid_mth,"dnwd0",itau_w,dnwd0) |
---|
699 | c |
---|
700 | ENDIF !iflag_con.GE.3 |
---|
701 | c |
---|
702 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_t_dyn, zx_tmp_3d) |
---|
703 | CALL histwrite_phy(nid_mth,"dtdyn",itau_w,d_t_dyn) |
---|
704 | c |
---|
705 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_q_dyn, zx_tmp_3d) |
---|
706 | CALL histwrite_phy(nid_mth,"dqdyn",itau_w,d_q_dyn) |
---|
707 | c |
---|
708 | cIM: 101003 : K/30min ==> K/s |
---|
709 | zx_tmp_fi3d(1:klon,1:klev)=d_t_con(1:klon,1:klev)/pdtphys |
---|
710 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
711 | CALL histwrite_phy(nid_mth,"dtcon",itau_w,zx_tmp_fi3d) |
---|
712 | c |
---|
713 | zx_tmp_fi3d(1:klon,1:klev)=d_q_con(1:klon,1:klev)/pdtphys |
---|
714 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
715 | CALL histwrite_phy(nid_mth,"dqcon",itau_w,zx_tmp_fi3d) |
---|
716 | c |
---|
717 | cIM: 101003 : K/30min ==> K/s |
---|
718 | zx_tmp_fi3d(1:klon,1:klev)=d_t_lsc(1:klon,1:klev)/pdtphys |
---|
719 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
720 | CALL histwrite_phy(nid_mth,"dtlsc",itau_w,zx_tmp_fi3d) |
---|
721 | cIM: 071003 |
---|
722 | cIM: 101003 : K/30min ==> K/s |
---|
723 | zx_tmp_fi3d(1:klon, 1:klev)=(d_t_lsc(1:klon,1:klev)+ |
---|
724 | . d_t_eva(1:klon,1:klev))/pdtphys |
---|
725 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zx_tmp_fi3d, zx_tmp_3d) |
---|
726 | CALL histwrite_phy(nid_mth,"dtlschr",itau_w,zx_tmp_fi3d) |
---|
727 | c |
---|
728 | zx_tmp_fi3d(1:klon,1:klev)=d_q_lsc(1:klon,1:klev)/pdtphys |
---|
729 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
730 | CALL histwrite_phy(nid_mth,"dqlsc",itau_w,zx_tmp_fi3d) |
---|
731 | c |
---|
732 | cIM: 101003 : K/30min ==> K/s |
---|
733 | zx_tmp_fi3d(1:klon,1:klev)=d_t_vdf(1:klon,1:klev)/pdtphys |
---|
734 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
735 | CALL histwrite_phy(nid_mth,"dtvdf",itau_w,zx_tmp_fi3d) |
---|
736 | c |
---|
737 | zx_tmp_fi3d(1:klon,1:klev)=d_q_vdf(1:klon,1:klev)/pdtphys |
---|
738 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
739 | CALL histwrite_phy(nid_mth,"dqvdf",itau_w,zx_tmp_fi3d) |
---|
740 | c |
---|
741 | cIM: 101003 : K/30min ==> K/s |
---|
742 | zx_tmp_fi3d(1:klon,1:klev)=d_t_eva(1:klon,1:klev)/pdtphys |
---|
743 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
744 | CALL histwrite_phy(nid_mth,"dteva",itau_w,zx_tmp_fi3d) |
---|
745 | c |
---|
746 | zx_tmp_fi3d(1:klon,1:klev)=d_q_eva(1:klon,1:klev)/pdtphys |
---|
747 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
748 | CALL histwrite_phy(nid_mth,"dqeva",itau_w,zx_tmp_fi3d) |
---|
749 | c |
---|
750 | zpt_conv = 0. |
---|
751 | where (ptconv) zpt_conv = 1. |
---|
752 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zpt_conv, zx_tmp_3d) |
---|
753 | CALL histwrite_phy(nid_mth,"ptconv",itau_w,zpt_conv) |
---|
754 | c |
---|
755 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, ratqs, zx_tmp_3d) |
---|
756 | CALL histwrite_phy(nid_mth,"ratqs",itau_w,ratqs) |
---|
757 | c |
---|
758 | cIM: 101003 : K/30min ==> K/s |
---|
759 | zx_tmp_fi3d(1:klon,1:klev)=d_t_ajs(1:klon,1:klev)/pdtphys |
---|
760 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
761 | CALL histwrite_phy(nid_mth,"dtajs",itau_w,zx_tmp_fi3d) |
---|
762 | c |
---|
763 | zx_tmp_fi3d(1:klon,1:klev)=d_q_ajs(1:klon,1:klev)/pdtphys |
---|
764 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
765 | CALL histwrite_phy(nid_mth,"dqajs",itau_w,zx_tmp_fi3d) |
---|
766 | c |
---|
767 | cIM: 101003 : K/day ==> K/s |
---|
768 | zx_tmp_fi3d(1:klon,1:klev)=heat(1:klon,1:klev)/RDAY |
---|
769 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
770 | CALL histwrite_phy(nid_mth,"dtswr",itau_w,zx_tmp_fi3d) |
---|
771 | c |
---|
772 | cIM: 101003 : K/day ==> K/s |
---|
773 | zx_tmp_fi3d(1:klon,1:klev)=heat0(1:klon,1:klev)/RDAY |
---|
774 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
775 | CALL histwrite_phy(nid_mth,"dtsw0",itau_w,zx_tmp_fi3d) |
---|
776 | c |
---|
777 | cIM: 101003 : K/day ==> K/s |
---|
778 | zx_tmp_fi3d(1:klon,1:klev)=-1.*cool(1:klon,1:klev)/RDAY |
---|
779 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
780 | CALL histwrite_phy(nid_mth,"dtlwr",itau_w,zx_tmp_fi3d) |
---|
781 | c |
---|
782 | cIM: 101003 : K/day ==> K/s |
---|
783 | zx_tmp_fi3d(1:klon,1:klev)=-1.*cool0(1:klon,1:klev)/RDAY |
---|
784 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
785 | CALL histwrite_phy(nid_mth,"dtlw0",itau_w,zx_tmp_fi3d) |
---|
786 | c |
---|
787 | cIM: 101003 : deja en K/s |
---|
788 | zx_tmp_fi3d(1:klon,1:klev)=d_t_ec(1:klon,1:klev) |
---|
789 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
790 | CALL histwrite_phy(nid_mth,"dtec",itau_w,zx_tmp_fi3d) |
---|
791 | c |
---|
792 | zx_tmp_fi3d(1:klon,1:klev)=d_u_vdf(1:klon,1:klev)/pdtphys |
---|
793 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
794 | CALL histwrite_phy(nid_mth,"duvdf",itau_w,zx_tmp_fi3d) |
---|
795 | c |
---|
796 | zx_tmp_fi3d(1:klon,1:klev)=d_v_vdf(1:klon,1:klev)/pdtphys |
---|
797 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
798 | CALL histwrite_phy(nid_mth,"dvvdf",itau_w,zx_tmp_fi3d) |
---|
799 | c |
---|
800 | IF (ok_orodr) THEN |
---|
801 | zx_tmp_fi3d(1:klon,1:klev)=d_u_oro(1:klon,1:klev)/pdtphys |
---|
802 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
803 | CALL histwrite_phy(nid_mth,"duoro",itau_w,zx_tmp_fi3d) |
---|
804 | c |
---|
805 | zx_tmp_fi3d(1:klon,1:klev)=d_v_oro(1:klon,1:klev)/pdtphys |
---|
806 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
807 | CALL histwrite_phy(nid_mth,"dvoro",itau_w,zx_tmp_fi3d) |
---|
808 | c |
---|
809 | ENDIF |
---|
810 | C |
---|
811 | IF (ok_orolf) THEN |
---|
812 | zx_tmp_fi3d(1:klon,1:klev)=d_u_lif(1:klon,1:klev)/pdtphys |
---|
813 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
814 | CALL histwrite_phy(nid_mth,"dulif",itau_w,zx_tmp_fi3d) |
---|
815 | c |
---|
816 | zx_tmp_fi3d(1:klon,1:klev)=d_v_lif(1:klon,1:klev)/pdtphys |
---|
817 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
818 | CALL histwrite_phy(nid_mth,"dvlif",itau_w,zx_tmp_fi3d) |
---|
819 | ENDIF |
---|
820 | C |
---|
821 | IF (nqmax.GE.3) THEN |
---|
822 | DO iq=3,nqmax |
---|
823 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, qx(1,1,iq), zx_tmp_3d) |
---|
824 | CALL histwrite_phy(nid_mth,tnom(iq),itau_w,qx(:,:,iq)) |
---|
825 | ENDDO |
---|
826 | ENDIF |
---|
827 | c |
---|
828 | ENDIF !lev_histmth.GE.4 |
---|
829 | c |
---|
830 | ELSE IF(type_run.EQ."AMIP".OR.type_run.EQ."CFMI") THEN |
---|
831 | c |
---|
832 | IF(lev_histmth.GE.1) THEN |
---|
833 | c |
---|
834 | c Champs 2D: |
---|
835 | c |
---|
836 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,pphis/RG,zx_tmp_2d) |
---|
837 | CALL histwrite_phy(nid_mth,"phis",itau_w,pphis/RG) |
---|
838 | C |
---|
839 | cIM 310804 CALL gr_fi_ecrit(1,klon,iim,jjmp1,paire,zx_tmp_2d) |
---|
840 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,airephy,zx_tmp_2d) |
---|
841 | CALL histwrite_phy(nid_mth,"aire",itau_w,airephy) |
---|
842 | c |
---|
843 | zx_tmp_fi2d(1 : klon) = pctsrf(1 : klon, is_ter)* 100. |
---|
844 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d, zx_tmp_2d) |
---|
845 | CALL histwrite_phy(nid_mth,"pourc_"//clnsurf(is_ter),itau_w, |
---|
846 | $ zx_tmp_fi2d) |
---|
847 | c |
---|
848 | zx_tmp_fi2d(1 : klon) = pctsrf(1 : klon, is_ter) |
---|
849 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d, zx_tmp_2d) |
---|
850 | CALL histwrite_phy(nid_mth,"fract_"//clnsurf(is_ter),itau_w, |
---|
851 | $ zx_tmp_fi2d) |
---|
852 | c |
---|
853 | zx_tmp_fi2d(1 : klon) = pctsrf(1 : klon, is_lic)* 100. |
---|
854 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d, zx_tmp_2d) |
---|
855 | CALL histwrite_phy(nid_mth,"pourc_"//clnsurf(is_lic),itau_w, |
---|
856 | $ zx_tmp_fi2d) |
---|
857 | c |
---|
858 | zx_tmp_fi2d(1 : klon) = pctsrf(1 : klon, is_lic) |
---|
859 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d, zx_tmp_2d) |
---|
860 | CALL histwrite_phy(nid_mth,"fract_"//clnsurf(is_lic),itau_w, |
---|
861 | $ zx_tmp_fi2d) |
---|
862 | c |
---|
863 | zx_tmp_fi2d(1 : klon) = pctsrf(1 : klon, is_sic)* 100. |
---|
864 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
865 | CALL histwrite_phy(nid_mth,"pourc_"//clnsurf(is_sic),itau_w, |
---|
866 | $ zx_tmp_fi2d) |
---|
867 | c |
---|
868 | zx_tmp_fi2d(1 : klon) = pctsrf(1 : klon, is_sic) |
---|
869 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
870 | CALL histwrite_phy(nid_mth,"fract_"//clnsurf(is_sic),itau_w, |
---|
871 | $ zx_tmp_fi2d) |
---|
872 | c |
---|
873 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxfluxlat,zx_tmp_2d) |
---|
874 | CALL histwrite_phy(nid_mth,"flat",itau_w,zxfluxlat) |
---|
875 | c |
---|
876 | zx_tmp_fi2d(1 : klon) = topsw(1:klon)-toplw(1:klon) |
---|
877 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
878 | CALL histwrite_phy(nid_mth,"bilTOA",itau_w,zx_tmp_fi2d) |
---|
879 | c |
---|
880 | c IF(itap.EQ.ecrit_mth) THEN |
---|
881 | c DO i=1, klon |
---|
882 | c IF(nday_clr(i).GT.0.) THEN |
---|
883 | c tops01(i)=tops01(i)/nday_clr(i) |
---|
884 | c ELSE |
---|
885 | c tops01(i)=1.e+20 |
---|
886 | c ENDIF |
---|
887 | c ENDDO |
---|
888 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, tops01,zx_tmp_2d) |
---|
889 | c CALL histwrite_phy(nid_mth,"tops01",itau_w,zx_tmp_2d, |
---|
890 | c . iim*jjmp1,ndex2d) |
---|
891 | c ENDIF !itap.EQ.ecrit_mth |
---|
892 | c |
---|
893 | c220404 BEG |
---|
894 | c |
---|
895 | c temperature tendency due to total diabatic heating |
---|
896 | DO l=1, klev |
---|
897 | DO i=1, klon |
---|
898 | d_t(i,l) = (t_seri(i,l)-t(i,l))/dtime |
---|
899 | ENDDO !i |
---|
900 | ENDDO !l |
---|
901 | c |
---|
902 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_t,zx_tmp_3d) |
---|
903 | CALL histwrite_phy(nid_mth,"dtdia",itau_w,d_t) |
---|
904 | c |
---|
905 | c temperature tendency due to SW radiation |
---|
906 | DO l=1, klev |
---|
907 | DO i=1, klon |
---|
908 | zx_tmp_fi3d(i,l)=heat(i,l)/RDAY |
---|
909 | ENDDO !i |
---|
910 | ENDDO !l |
---|
911 | c |
---|
912 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zx_tmp_fi3d,zx_tmp_3d) |
---|
913 | CALL histwrite_phy(nid_mth,"dtsw",itau_w,zx_tmp_fi3d) |
---|
914 | c |
---|
915 | c temperature tendency due to LW radiation |
---|
916 | DO l=1, klev |
---|
917 | DO i=1, klon |
---|
918 | zx_tmp_fi3d(i,l)=-1*cool(i,l)/RDAY |
---|
919 | ENDDO !i |
---|
920 | ENDDO !l |
---|
921 | c |
---|
922 | cym CALL gr_fi_ecrit(klev, klon,iim,jjmp1, zx_tmp_fi3d,zx_tmp_3d) |
---|
923 | CALL histwrite_phy(nid_mth,"dtlw",itau_w,zx_tmp_fi3d) |
---|
924 | c |
---|
925 | c temperature tendency due to moist convective processes |
---|
926 | DO l=1, klev |
---|
927 | DO i=1, klon |
---|
928 | zx_tmp_fi3d(i,l)=d_t_con(i,l)/pdtphys |
---|
929 | ENDDO !i |
---|
930 | ENDDO !l |
---|
931 | c |
---|
932 | cym CALL gr_fi_ecrit(klev, klon,iim,jjmp1, zx_tmp_fi3d,zx_tmp_3d) |
---|
933 | CALL histwrite_phy(nid_mth,"dtcon",itau_w,zx_tmp_fi3d) |
---|
934 | c |
---|
935 | c temperature tendency due to dry convective processes |
---|
936 | DO l=1, klev |
---|
937 | DO i=1, klon |
---|
938 | zx_tmp_fi3d(i,l)=d_t_ajs(i,l)/pdtphys |
---|
939 | ENDDO !i |
---|
940 | ENDDO !l |
---|
941 | c |
---|
942 | cym CALL gr_fi_ecrit(klev, klon,iim,jjmp1, zx_tmp_fi3d,zx_tmp_3d) |
---|
943 | CALL histwrite_phy(nid_mth,"dtajs",itau_w,zx_tmp_fi3d) |
---|
944 | c |
---|
945 | c temperature tendency due to large scale precipitation |
---|
946 | DO l=1, klev |
---|
947 | DO i=1, klon |
---|
948 | zx_tmp_fi3d(i,l)=d_t_lsc(i,l)/pdtphys |
---|
949 | ENDDO !i |
---|
950 | ENDDO !l |
---|
951 | c |
---|
952 | cym CALL gr_fi_ecrit(klev, klon,iim,jjmp1, zx_tmp_fi3d,zx_tmp_3d) |
---|
953 | CALL histwrite_phy(nid_mth,"dtlsc",itau_w,zx_tmp_fi3d) |
---|
954 | c |
---|
955 | c total moisture tendency due to diabatic processes |
---|
956 | DO l=1, klev |
---|
957 | DO i=1, klon |
---|
958 | d_qx(i,l,ivap) = ( q_seri(i,l) - qx(i,l,ivap) ) / dtime |
---|
959 | zx_tmp_fi3d(i,l)=d_qx(i,l,ivap) |
---|
960 | ENDDO !i |
---|
961 | ENDDO !l |
---|
962 | c |
---|
963 | cym CALL gr_fi_ecrit(klev, klon,iim,jjmp1, zx_tmp_fi3d,zx_tmp_3d) |
---|
964 | CALL histwrite_phy(nid_mth,"dqdia",itau_w,zx_tmp_fi3d) |
---|
965 | c |
---|
966 | cBEG 210404 BEG |
---|
967 | c |
---|
968 | IF(ok_orodr.AND.ok_orolf) THEN |
---|
969 | DO k = 1, klev |
---|
970 | DO i = 1, klon |
---|
971 | d_u_oli(i,k) = (d_u_oro(i,k) + d_u_lif(i,k))/pdtphys |
---|
972 | d_v_oli(i,k) = (d_v_oro(i,k) + d_v_lif(i,k))/pdtphys |
---|
973 | ENDDO |
---|
974 | ENDDO |
---|
975 | ENDIF !(ok_orodr.AND.ok_orolf) THEN |
---|
976 | c |
---|
977 | cym CALL gr_fi_ecrit(klev, klon,iim,jjmp1,d_u_oli,zx_tmp_3d) |
---|
978 | CALL histwrite_phy(nid_mth,"duoli",itau_w,d_u_oli) |
---|
979 | c |
---|
980 | cym CALL gr_fi_ecrit(klev, klon,iim,jjmp1,d_v_oli,zx_tmp_3d) |
---|
981 | CALL histwrite_phy(nid_mth,"dvoli",itau_w,d_v_oli) |
---|
982 | c |
---|
983 | zx_tmp_fi3d(1:klon,1:klev)=d_u_con(1:klon,1:klev)/pdtphys |
---|
984 | cym CALL gr_fi_ecrit(klev, klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
985 | CALL histwrite_phy(nid_mth,"ducon",itau_w,zx_tmp_fi3d) |
---|
986 | c |
---|
987 | zx_tmp_fi3d(1:klon,1:klev)=d_v_con(1:klon,1:klev)/pdtphys |
---|
988 | cym CALL gr_fi_ecrit(klev, klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
989 | CALL histwrite_phy(nid_mth,"dvcon",itau_w,zx_tmp_fi3d) |
---|
990 | c |
---|
991 | cym CALL gr_fi_ecrit(klev, klon,iim,jjmp1,d_u,zx_tmp_3d) |
---|
992 | CALL histwrite_phy(nid_mth,"dutot",itau_w,d_u) |
---|
993 | c |
---|
994 | cym CALL gr_fi_ecrit(klev, klon,iim,jjmp1,d_v,zx_tmp_3d) |
---|
995 | CALL histwrite_phy(nid_mth,"dvtot",itau_w,d_v) |
---|
996 | |
---|
997 | cEND 210404 END |
---|
998 | c |
---|
999 | c cldtrue |
---|
1000 | c CALL gr_fi_ecrit(klev, klon,iim,jjmp1,cldtrue,zx_tmp_3d) |
---|
1001 | c CALL histwrite_phy(nid_mth,"cldtrue",itau_w,zx_tmp_3d, |
---|
1002 | c $ iim*jjmp1*klev,ndex3d) |
---|
1003 | c |
---|
1004 | c CALL gr_fi_ecrit(klev, klon,iim,jjmp1,cldTOA,zx_tmp_3d) |
---|
1005 | c CALL histwrite_phy(nid_mth,"cldTOA",itau_w,zx_tmp_3d, |
---|
1006 | c $ iim*jjmp1*klev,ndex3d) |
---|
1007 | c |
---|
1008 | c CALL gr_fi_ecrit(klev, klon,iim,jjmp1,cldSFC,zx_tmp_3d) |
---|
1009 | c CALL histwrite_phy(nid_mth,"cldSFC",itau_w,zx_tmp_3d, |
---|
1010 | c $ iim*jjmp1*klev,ndex3d) |
---|
1011 | c |
---|
1012 | DO i=1, klon |
---|
1013 | cIM 151004 zx_tmp_fi2d(i)=GWDtaux1(i,1)-GWDtaux0(i,1) |
---|
1014 | zx_tmp_fi2d(i)=zustrdr(i)+zustrli(i) |
---|
1015 | ENDDO |
---|
1016 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
1017 | CALL histwrite_phy(nid_mth,"GWDtaux",itau_w,zx_tmp_fi2d) |
---|
1018 | c |
---|
1019 | DO i=1, klon |
---|
1020 | cIM 151004 zx_tmp_fi2d(i)=GWDtauy1(i,1)-GWDtauy0(i,1) |
---|
1021 | zx_tmp_fi2d(i)=zvstrdr(i)+zvstrli(i) |
---|
1022 | ENDDO |
---|
1023 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
1024 | CALL histwrite_phy(nid_mth,"GWDtauy",itau_w,zx_tmp_fi2d) |
---|
1025 | c |
---|
1026 | c220404 END |
---|
1027 | cAMIP2 END |
---|
1028 | c |
---|
1029 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, slp,zx_tmp_2d) |
---|
1030 | CALL histwrite_phy(nid_mth,"slp",itau_w,slp) |
---|
1031 | |
---|
1032 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxtsol,zx_tmp_2d) |
---|
1033 | CALL histwrite_phy(nid_mth,"tsol",itau_w,zxtsol) |
---|
1034 | c |
---|
1035 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zt2m,zx_tmp_2d) |
---|
1036 | CALL histwrite_phy(nid_mth,"t2m",itau_w,zt2m) |
---|
1037 | c |
---|
1038 | c ENSEMBLES BEG |
---|
1039 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
1040 | CALL histwrite_phy(nid_mth,"t2m_min",itau_w,zt2m) |
---|
1041 | c |
---|
1042 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
1043 | CALL histwrite_phy(nid_mth,"t2m_max",itau_w,zt2m) |
---|
1044 | c |
---|
1045 | c CALL gr_fi_ecrit(1,klon,iim,jjmp1,ftsoil(:,1,is_ter),zx_tmp_2d) |
---|
1046 | c CALL gr_fi_ecrit(1,klon,iim,jjmp1,ftsol(:,is_ter),zx_tmp_2d) |
---|
1047 | c CALL gr_fi_ecrit(1,klon,iim,jjmp1,ztsol,zx_tmp_2d) |
---|
1048 | c CALL histwrite_phy(nid_mth,"tsoil",itau_w,zx_tmp_2d, |
---|
1049 | c . iim*jjmp1,ndex2d) |
---|
1050 | c |
---|
1051 | DO i=1, klon |
---|
1052 | zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i)) |
---|
1053 | ENDDO |
---|
1054 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1055 | CALL histwrite_phy(nid_mth,"wind10m",itau_w,zx_tmp_fi2d) |
---|
1056 | c |
---|
1057 | DO i = 1, klon |
---|
1058 | zx_tmp_fi2d(i) = pctsrf(i,is_sic) |
---|
1059 | ENDDO |
---|
1060 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1061 | CALL histwrite_phy(nid_mth,"sicf",itau_w,zx_tmp_fi2d) |
---|
1062 | c |
---|
1063 | c CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d) |
---|
1064 | c CALL histwrite_phy(nid_mth,"temp",itau_w,zx_tmp_3d, |
---|
1065 | c . iim*jjmp1*klev,ndex3d) |
---|
1066 | c |
---|
1067 | c ENSEMBLES END |
---|
1068 | c |
---|
1069 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zq2m,zx_tmp_2d) |
---|
1070 | CALL histwrite_phy(nid_mth,"q2m",itau_w,zq2m) |
---|
1071 | c |
---|
1072 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zu10m,zx_tmp_2d) |
---|
1073 | CALL histwrite_phy(nid_mth,"u10m",itau_w,zu10m) |
---|
1074 | C |
---|
1075 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zv10m,zx_tmp_2d) |
---|
1076 | CALL histwrite_phy(nid_mth,"v10m",itau_w,zv10m) |
---|
1077 | C |
---|
1078 | DO i = 1, klon |
---|
1079 | zx_tmp_fi2d(i) = paprs(i,1) |
---|
1080 | ENDDO |
---|
1081 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1082 | CALL histwrite_phy(nid_mth,"psol",itau_w,zx_tmp_fi2d) |
---|
1083 | c |
---|
1084 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxqsurf,zx_tmp_2d) |
---|
1085 | CALL histwrite_phy(nid_mth,"qsurf",itau_w,zxqsurf) |
---|
1086 | c |
---|
1087 | if (.not. ok_veget) then |
---|
1088 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, qsol,zx_tmp_2d) |
---|
1089 | CALL histwrite_phy(nid_mth,"qsol",itau_w,qsol) |
---|
1090 | endif |
---|
1091 | c |
---|
1092 | DO i = 1, klon |
---|
1093 | zx_tmp_fi2d(i) = rain_fall(i) + snow_fall(i) |
---|
1094 | ENDDO |
---|
1095 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1096 | CALL histwrite_phy(nid_mth,"precip",itau_w,zx_tmp_fi2d) |
---|
1097 | c |
---|
1098 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, nday_rain,zx_tmp_2d) |
---|
1099 | CALL histwrite_phy(nid_mth,"ndayrain",itau_w,nday_rain) |
---|
1100 | c |
---|
1101 | DO i = 1, klon |
---|
1102 | zx_tmp_fi2d(i) = rain_lsc(i) + snow_lsc(i) |
---|
1103 | ENDDO |
---|
1104 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1105 | CALL histwrite_phy(nid_mth,"plul",itau_w,zx_tmp_fi2d) |
---|
1106 | c |
---|
1107 | DO i = 1, klon |
---|
1108 | zx_tmp_fi2d(i) = rain_con(i) + snow_con(i) |
---|
1109 | ENDDO |
---|
1110 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1111 | CALL histwrite_phy(nid_mth,"pluc",itau_w,zx_tmp_fi2d) |
---|
1112 | c |
---|
1113 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_fall,zx_tmp_2d) |
---|
1114 | CALL histwrite_phy(nid_mth,"snowf",itau_w,snow_fall) |
---|
1115 | c |
---|
1116 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zsnow_mass,zx_tmp_2d) |
---|
1117 | c CALL histwrite_phy(nid_mth,"snow_mass",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
1118 | c . ndex2d) |
---|
1119 | c |
---|
1120 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, evap,zx_tmp_2d) |
---|
1121 | CALL histwrite_phy(nid_mth,"evap",itau_w,evap) |
---|
1122 | c |
---|
1123 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw,zx_tmp_2d) |
---|
1124 | CALL histwrite_phy(nid_mth,"tops",itau_w,topsw) |
---|
1125 | c |
---|
1126 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw0,zx_tmp_2d) |
---|
1127 | CALL histwrite_phy(nid_mth,"tops0",itau_w,topsw0) |
---|
1128 | c |
---|
1129 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw,zx_tmp_2d) |
---|
1130 | CALL histwrite_phy(nid_mth,"topl",itau_w,toplw) |
---|
1131 | c |
---|
1132 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw0,zx_tmp_2d) |
---|
1133 | CALL histwrite_phy(nid_mth,"topl0",itau_w,toplw0) |
---|
1134 | c |
---|
1135 | zx_tmp_fi2d(1 : klon) = swup ( 1 : klon, klevp1 ) |
---|
1136 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
1137 | CALL histwrite_phy(nid_mth, "SWupTOA",itau_w,zx_tmp_fi2d) |
---|
1138 | c |
---|
1139 | c |
---|
1140 | zx_tmp_fi2d(1 : klon) = swup0 ( 1 : klon, klevp1 ) |
---|
1141 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
1142 | CALL histwrite_phy(nid_mth, "SWupTOAclr",itau_w,zx_tmp_fi2d) |
---|
1143 | c |
---|
1144 | zx_tmp_fi2d(1 : klon) = swdn ( 1 : klon, klevp1 ) |
---|
1145 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
1146 | CALL histwrite_phy(nid_mth, "SWdnTOA",itau_w,zx_tmp_fi2d) |
---|
1147 | c |
---|
1148 | zx_tmp_fi2d(1 : klon) = swdn0 ( 1 : klon, klevp1 ) |
---|
1149 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
1150 | CALL histwrite_phy(nid_mth, "SWdnTOAclr",itau_w,zx_tmp_fi2d) |
---|
1151 | c |
---|
1152 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, SWup200,zx_tmp_2d) |
---|
1153 | CALL histwrite_phy(nid_mth,"SWup200",itau_w,SWup200) |
---|
1154 | c |
---|
1155 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, SWup200clr,zx_tmp_2d) |
---|
1156 | CALL histwrite_phy(nid_mth,"SWup200clr",itau_w,SWup200clr) |
---|
1157 | c |
---|
1158 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, SWdn200,zx_tmp_2d) |
---|
1159 | CALL histwrite_phy(nid_mth,"SWdn200",itau_w,SWdn200) |
---|
1160 | c |
---|
1161 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, SWdn200clr,zx_tmp_2d) |
---|
1162 | CALL histwrite_phy(nid_mth,"SWdn200clr",itau_w,SWdn200clr) |
---|
1163 | c |
---|
1164 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, LWup200,zx_tmp_2d) |
---|
1165 | CALL histwrite_phy(nid_mth,"LWup200",itau_w,LWup200) |
---|
1166 | c |
---|
1167 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, LWup200clr,zx_tmp_2d) |
---|
1168 | CALL histwrite_phy(nid_mth,"LWup200clr",itau_w,LWup200clr) |
---|
1169 | c |
---|
1170 | zx_tmp_fi2d(1:klon)=-1*LWdn200(1:klon) |
---|
1171 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1172 | CALL histwrite_phy(nid_mth,"LWdn200",itau_w,zx_tmp_fi2d) |
---|
1173 | c |
---|
1174 | zx_tmp_fi2d(1:klon)=-1*LWdn200clr(1:klon) |
---|
1175 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1176 | CALL histwrite_phy(nid_mth,"LWdn200clr",itau_w,zx_tmp_fi2d) |
---|
1177 | c |
---|
1178 | c200 END |
---|
1179 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw,zx_tmp_2d) |
---|
1180 | CALL histwrite_phy(nid_mth,"sols",itau_w,solsw) |
---|
1181 | c |
---|
1182 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw0,zx_tmp_2d) |
---|
1183 | CALL histwrite_phy(nid_mth,"sols0",itau_w,solsw0) |
---|
1184 | c |
---|
1185 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw,zx_tmp_2d) |
---|
1186 | CALL histwrite_phy(nid_mth,"soll",itau_w,sollw) |
---|
1187 | c |
---|
1188 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, radsol,zx_tmp_2d) |
---|
1189 | CALL histwrite_phy(nid_mth,"radsol",itau_w,radsol) |
---|
1190 | c |
---|
1191 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw0,zx_tmp_2d) |
---|
1192 | CALL histwrite_phy(nid_mth,"soll0",itau_w,sollw0) |
---|
1193 | c |
---|
1194 | c zx_tmp_fi2d(1 : klon) = ZFSUP( 1 : klon, 1) |
---|
1195 | zx_tmp_fi2d(1 : klon) = swup ( 1 : klon, 1 ) |
---|
1196 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
1197 | CALL histwrite_phy(nid_mth, "SWupSFC",itau_w,zx_tmp_fi2d) |
---|
1198 | c |
---|
1199 | c zx_tmp_fi2d(1 : klon) = ZFSUP0( 1 : klon, 1) |
---|
1200 | zx_tmp_fi2d(1 : klon) = swup0 ( 1 : klon, 1 ) |
---|
1201 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
1202 | CALL histwrite_phy(nid_mth, "SWupSFCclr",itau_w,zx_tmp_fi2d) |
---|
1203 | c |
---|
1204 | c zx_tmp_fi2d(1 : klon) = ZFSDN( 1 : klon, 1) |
---|
1205 | zx_tmp_fi2d(1 : klon) = swdn ( 1 : klon, 1 ) |
---|
1206 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
1207 | CALL histwrite_phy(nid_mth, "SWdnSFC",itau_w,zx_tmp_fi2d) |
---|
1208 | c |
---|
1209 | c zx_tmp_fi2d(1 : klon) = ZFSDN0( 1 : klon, 1) |
---|
1210 | zx_tmp_fi2d(1 : klon) = swdn0 ( 1 : klon, 1 ) |
---|
1211 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
1212 | CALL histwrite_phy(nid_mth, "SWdnSFCclr",itau_w,zx_tmp_fi2d) |
---|
1213 | c |
---|
1214 | cIM 080904 zx_tmp_fi2d(1:klon)=sollw(1:klon)+sollwdown(1:klon) |
---|
1215 | cIM 130904 zx_tmp_fi2d(1:klon)=sollw(1:klon)-sollwdown(1:klon) |
---|
1216 | zx_tmp_fi2d(1:klon)=sollwdown(1:klon)-sollw(1:klon) |
---|
1217 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
1218 | CALL histwrite_phy(nid_mth,"LWupSFC",itau_w,zx_tmp_fi2d) |
---|
1219 | c |
---|
1220 | DO i=1, klon |
---|
1221 | sollwdownclr(i)=-1.*lwdn0(i,1) |
---|
1222 | ENDDO !i=1, klon |
---|
1223 | c |
---|
1224 | cIM 080904 zx_tmp_fi2d(1:klon)=sollw0(1:klon)+sollwdownclr(1:klon) |
---|
1225 | cIM 130904 zx_tmp_fi2d(1:klon)=sollw0(1:klon)-sollwdownclr(1:klon) |
---|
1226 | zx_tmp_fi2d(1:klon)=sollwdownclr(1:klon)-sollw0(1:klon) |
---|
1227 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
1228 | CALL histwrite_phy(nid_mth,"LWupSFCclr",itau_w,zx_tmp_fi2d) |
---|
1229 | c |
---|
1230 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
1231 | CALL histwrite_phy(nid_mth,"LWdnSFC",itau_w,sollwdown) |
---|
1232 | c |
---|
1233 | c DO i=1, klon |
---|
1234 | cIM 08004 sollwdownclr(i)=lwdn0(i,1) |
---|
1235 | c sollwdownclr(i)=-1.*lwdn0(i,1) |
---|
1236 | c ENDDO !i=1, klon |
---|
1237 | c |
---|
1238 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdownclr,zx_tmp_2d) |
---|
1239 | CALL histwrite_phy(nid_mth,"LWdnSFCclr",itau_w,sollwdownclr) |
---|
1240 | c |
---|
1241 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, bils,zx_tmp_2d) |
---|
1242 | CALL histwrite_phy(nid_mth,"bils",itau_w,bils) |
---|
1243 | c |
---|
1244 | zx_tmp_fi2d(1:klon)=-1*sens(1:klon) |
---|
1245 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, sens,zx_tmp_2d) |
---|
1246 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1247 | CALL histwrite_phy(nid_mth,"sens",itau_w,zx_tmp_fi2d) |
---|
1248 | c |
---|
1249 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, fder,zx_tmp_2d) |
---|
1250 | CALL histwrite_phy(nid_mth,"fder",itau_w,fder) |
---|
1251 | c |
---|
1252 | c |
---|
1253 | c DO i = 1, klon |
---|
1254 | c zx_tmp_fi2d(i) = fluxu(i,1) |
---|
1255 | c ENDDO |
---|
1256 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1257 | c CALL histwrite_phy(nid_mth,"frtu",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
1258 | c |
---|
1259 | c DO i = 1, klon |
---|
1260 | c zx_tmp_fi2d(i) = fluxv(i,1) |
---|
1261 | c ENDDO |
---|
1262 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1263 | c CALL histwrite_phy(nid_mth,"frtv",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
1264 | c |
---|
1265 | c |
---|
1266 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxffonte,zx_tmp_2d) |
---|
1267 | CALL histwrite_phy(nid_mth,"ffonte",itau_w,zxffonte) |
---|
1268 | c |
---|
1269 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxfqcalving,zx_tmp_2d) |
---|
1270 | CALL histwrite_phy(nid_mth,"fqcalving",itau_w,zxfqcalving) |
---|
1271 | c |
---|
1272 | DO nsrf = 1, nbsrf |
---|
1273 | zx_tmp_fi2d(1 : klon) = fluxu( 1 : klon, 1, nsrf) |
---|
1274 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1275 | CALL histwrite_phy(nid_mth,"taux_"//clnsurf(nsrf),itau_w, |
---|
1276 | $ zx_tmp_fi2d) |
---|
1277 | C |
---|
1278 | zx_tmp_fi2d(1 : klon) = fluxv( 1 : klon, 1, nsrf) |
---|
1279 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1280 | CALL histwrite_phy(nid_mth,"tauy_"//clnsurf(nsrf),itau_w, |
---|
1281 | $ zx_tmp_fi2d) |
---|
1282 | ENDDO |
---|
1283 | c |
---|
1284 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, is_oce)*100. |
---|
1285 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
1286 | CALL histwrite_phy(nid_mth,"pourc_"//clnsurf(is_oce),itau_w, |
---|
1287 | $ zx_tmp_fi2d) |
---|
1288 | c |
---|
1289 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, is_oce) |
---|
1290 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
1291 | CALL histwrite_phy(nid_mth,"fract_"//clnsurf(is_oce),itau_w, |
---|
1292 | $ zx_tmp_fi2d) |
---|
1293 | c |
---|
1294 | DO nsrf = 1, nbsrf |
---|
1295 | CYYY |
---|
1296 | C |
---|
1297 | zx_tmp_fi2d(1 : klon) = ftsol( 1 : klon, nsrf) |
---|
1298 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1299 | CALL histwrite_phy(nid_mth,"tsol_"//clnsurf(nsrf),itau_w, |
---|
1300 | $ zx_tmp_fi2d) |
---|
1301 | C |
---|
1302 | zx_tmp_fi2d(1 : klon) = fluxt( 1 : klon, 1, nsrf) |
---|
1303 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1304 | CALL histwrite_phy(nid_mth,"sens_"//clnsurf(nsrf),itau_w, |
---|
1305 | $ zx_tmp_fi2d) |
---|
1306 | C |
---|
1307 | zx_tmp_fi2d(1 : klon) = fluxlat( 1 : klon, nsrf) |
---|
1308 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1309 | CALL histwrite_phy(nid_mth,"lat_"//clnsurf(nsrf),itau_w, |
---|
1310 | $ zx_tmp_fi2d) |
---|
1311 | C |
---|
1312 | zx_tmp_fi2d(1 : klon) = fsollw( 1 : klon, nsrf) |
---|
1313 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1314 | CALL histwrite_phy(nid_mth,"flw_"//clnsurf(nsrf),itau_w, |
---|
1315 | $ zx_tmp_fi2d) |
---|
1316 | c |
---|
1317 | zx_tmp_fi2d(1 : klon) = fsolsw( 1 : klon, nsrf) |
---|
1318 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1319 | CALL histwrite_phy(nid_mth,"fsw_"//clnsurf(nsrf),itau_w, |
---|
1320 | $ zx_tmp_fi2d) |
---|
1321 | C |
---|
1322 | zx_tmp_fi2d(1 : klon) = wfbils( 1 : klon, nsrf) |
---|
1323 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1324 | CALL histwrite_phy(nid_mth,"wbils_"//clnsurf(nsrf),itau_w, |
---|
1325 | $ zx_tmp_fi2d) |
---|
1326 | C |
---|
1327 | zx_tmp_fi2d(1 : klon) = wfbilo( 1 : klon, nsrf) |
---|
1328 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1329 | CALL histwrite_phy(nid_mth,"wbilo_"//clnsurf(nsrf),itau_w, |
---|
1330 | $ zx_tmp_fi2d) |
---|
1331 | C |
---|
1332 | IF(1.EQ.0) THEN |
---|
1333 | C |
---|
1334 | zx_tmp_fi2d(1:klon) = fevap(1:klon,nsrf)*pctsrf(1:klon,nsrf) |
---|
1335 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1336 | CALL histwrite_phy(nid_mth,"evapour_"//clnsurf(nsrf),itau_w, |
---|
1337 | $ zx_tmp_fi2d) |
---|
1338 | C |
---|
1339 | zx_tmp_fi2d(1:klon) = (rain_fall(1:klon) + snow_fall(1:klon)) |
---|
1340 | $ *pctsrf(1:klon,nsrf) |
---|
1341 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1342 | CALL histwrite_phy(nid_mth,"prepour_"//clnsurf(nsrf),itau_w, |
---|
1343 | $ zx_tmp_fi2d) |
---|
1344 | C |
---|
1345 | ENDIF !(1.EQ.0) THEN |
---|
1346 | C |
---|
1347 | END DO |
---|
1348 | c |
---|
1349 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragm,zx_tmp_2d) |
---|
1350 | CALL histwrite_phy(nid_mth,"cdrm",itau_w,cdragm) |
---|
1351 | c |
---|
1352 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragh,zx_tmp_2d) |
---|
1353 | CALL histwrite_phy(nid_mth,"cdrh",itau_w,cdragh) |
---|
1354 | c |
---|
1355 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldl,zx_tmp_2d) |
---|
1356 | CALL histwrite_phy(nid_mth,"cldl",itau_w,cldl) |
---|
1357 | c |
---|
1358 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldm,zx_tmp_2d) |
---|
1359 | CALL histwrite_phy(nid_mth,"cldm",itau_w,cldm) |
---|
1360 | c |
---|
1361 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldh,zx_tmp_2d) |
---|
1362 | CALL histwrite_phy(nid_mth,"cldh",itau_w,cldh) |
---|
1363 | c |
---|
1364 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldt*100.,zx_tmp_2d) |
---|
1365 | CALL histwrite_phy(nid_mth,"cldt",itau_w,cldt*100.) |
---|
1366 | c |
---|
1367 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldq,zx_tmp_2d) |
---|
1368 | CALL histwrite_phy(nid_mth,"cldq",itau_w,cldq) |
---|
1369 | c |
---|
1370 | zx_tmp_fi2d(1:klon) = flwp(1:klon) |
---|
1371 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1372 | CALL histwrite_phy(nid_mth,"lwp",itau_w,zx_tmp_fi2d) |
---|
1373 | c |
---|
1374 | zx_tmp_fi2d(1:klon) = fiwp(1:klon) |
---|
1375 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1376 | CALL histwrite_phy(nid_mth,"iwp",itau_w,zx_tmp_fi2d) |
---|
1377 | c |
---|
1378 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, ue,zx_tmp_2d) |
---|
1379 | CALL histwrite_phy(nid_mth,"ue",itau_w,ue) |
---|
1380 | c |
---|
1381 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, ve,zx_tmp_2d) |
---|
1382 | CALL histwrite_phy(nid_mth,"ve",itau_w,ve) |
---|
1383 | c |
---|
1384 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, uq,zx_tmp_2d) |
---|
1385 | CALL histwrite_phy(nid_mth,"uq",itau_w,uq) |
---|
1386 | c |
---|
1387 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, vq,zx_tmp_2d) |
---|
1388 | CALL histwrite_phy(nid_mth,"vq",itau_w,vq) |
---|
1389 | cKE43 |
---|
1390 | IF (iflag_con.GE.3) THEN ! sb |
---|
1391 | c |
---|
1392 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cape,zx_tmp_2d) |
---|
1393 | CALL histwrite_phy(nid_mth,"cape",itau_w,cape) |
---|
1394 | c |
---|
1395 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,pbase,zx_tmp_2d) |
---|
1396 | CALL histwrite_phy(nid_mth,"pbase",itau_w,pbase) |
---|
1397 | c |
---|
1398 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,ema_pct,zx_tmp_2d) |
---|
1399 | CALL histwrite_phy(nid_mth,"ptop",itau_w,ema_pct) |
---|
1400 | c |
---|
1401 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,ema_cbmf,zx_tmp_2d) |
---|
1402 | CALL histwrite_phy(nid_mth,"fbase",itau_w,ema_cbmf) |
---|
1403 | c |
---|
1404 | c34EK |
---|
1405 | c |
---|
1406 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, prw,zx_tmp_2d) |
---|
1407 | CALL histwrite_phy(nid_mth,"prw",itau_w,prw) |
---|
1408 | c |
---|
1409 | ENDIF !iflag_con.GE.3 |
---|
1410 | c |
---|
1411 | cIM cf. AM 081204 BEG |
---|
1412 | cHBTM2 |
---|
1413 | c |
---|
1414 | c |
---|
1415 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_pblh,zx_tmp_2d) |
---|
1416 | CALL histwrite_phy(nid_mth,"s_pblh",itau_w,s_pblh) |
---|
1417 | c |
---|
1418 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_pblt,zx_tmp_2d) |
---|
1419 | CALL histwrite_phy(nid_mth,"s_pblt",itau_w,s_pblt) |
---|
1420 | c |
---|
1421 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_lcl,zx_tmp_2d) |
---|
1422 | CALL histwrite_phy(nid_mth,"s_lcl",itau_w,s_lcl) |
---|
1423 | c |
---|
1424 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_capCL,zx_tmp_2d) |
---|
1425 | CALL histwrite_phy(nid_mth,"s_capCL",itau_w,s_capCL) |
---|
1426 | c |
---|
1427 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_oliqCL,zx_tmp_2d) |
---|
1428 | CALL histwrite_phy(nid_mth,"s_oliqCL",itau_w,s_oliqCL) |
---|
1429 | c |
---|
1430 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_cteiCL,zx_tmp_2d) |
---|
1431 | CALL histwrite_phy(nid_mth,"s_cteiCL",itau_w,s_cteiCL) |
---|
1432 | c |
---|
1433 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_therm,zx_tmp_2d) |
---|
1434 | CALL histwrite_phy(nid_mth,"s_therm",itau_w,s_therm) |
---|
1435 | c |
---|
1436 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_trmb1,zx_tmp_2d) |
---|
1437 | CALL histwrite_phy(nid_mth,"s_trmb1",itau_w,s_trmb1) |
---|
1438 | c |
---|
1439 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_trmb2,zx_tmp_2d) |
---|
1440 | CALL histwrite_phy(nid_mth,"s_trmb2",itau_w,s_trmb2) |
---|
1441 | c |
---|
1442 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_trmb3,zx_tmp_2d) |
---|
1443 | CALL histwrite_phy(nid_mth,"s_trmb3",itau_w,s_trmb3) |
---|
1444 | c |
---|
1445 | cIM cf. AM 081204 END |
---|
1446 | c |
---|
1447 | c Champs interpolles sur des niveaux de pression |
---|
1448 | c DO k=1, nlevENS |
---|
1449 | DO k=1, nlevSTD |
---|
1450 | c |
---|
1451 | c bb=clevSTD(k) |
---|
1452 | c |
---|
1453 | c IF(k.GE.2) THEN |
---|
1454 | IF(k.GE.2.AND.k.LE.12) bb2=clevSTD(k) |
---|
1455 | IF(k.GE.13.AND.k.LE.17) bb3=clevSTD(k) |
---|
1456 | c aa=clevSTD(k) |
---|
1457 | c bb=aa(1:lnblnk1(aa)) |
---|
1458 | c ENDIF |
---|
1459 | c |
---|
1460 | IF(bb2.EQ."850".OR.bb2.EQ."700" |
---|
1461 | $ .OR.bb2.EQ."500".OR.bb2.EQ."200") THEN |
---|
1462 | c |
---|
1463 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,usumSTD(:,k,2),zx_tmp_2d) |
---|
1464 | CALL histwrite_phy(nid_mth,"u"//bb2,itau_w,usumSTD(:,k,2)) |
---|
1465 | c |
---|
1466 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,vsumSTD(:,k,2),zx_tmp_2d) |
---|
1467 | CALL histwrite_phy(nid_mth,"v"//bb2,itau_w,vsumSTD(:,k,2)) |
---|
1468 | c |
---|
1469 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,wsumSTD(:,k,2),zx_tmp_2d) |
---|
1470 | CALL histwrite_phy(nid_mth,"w"//bb2,itau_w,wsumSTD(:,k,2)) |
---|
1471 | c |
---|
1472 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,phisumSTD(:,k,2),zx_tmp_2d) |
---|
1473 | CALL histwrite_phy(nid_mth,"phi"//bb2,itau_w,phisumSTD(:,k,2)) |
---|
1474 | c |
---|
1475 | ENDIF !(bb2.EQ."850".OR.bb2.EQ."700" |
---|
1476 | ENDDO !nlevSTD |
---|
1477 | c |
---|
1478 | DO i=1, klon |
---|
1479 | IF (pctsrf(i,is_oce).GT.epsfra) THEN |
---|
1480 | zx_tmp_fi2d(i) = fluxo(i) |
---|
1481 | ELSE |
---|
1482 | zx_tmp_fi2d(i) = 0. |
---|
1483 | ENDIF |
---|
1484 | ENDDO |
---|
1485 | c |
---|
1486 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1487 | CALL histwrite_phy(nid_mth,"fluxo",itau_w,zx_tmp_fi2d) |
---|
1488 | c |
---|
1489 | DO i=1, klon |
---|
1490 | IF (pctsrf(i,is_sic).GT.epsfra) THEN |
---|
1491 | zx_tmp_fi2d(i) = fluxg(i) |
---|
1492 | ELSE |
---|
1493 | zx_tmp_fi2d(i) = 0. |
---|
1494 | ENDIF |
---|
1495 | ENDDO |
---|
1496 | c |
---|
1497 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1498 | CALL histwrite_phy(nid_mth,"fluxg",itau_w,zx_tmp_fi2d) |
---|
1499 | c |
---|
1500 | DO i=1, klon |
---|
1501 | IF (pctsrf(i,is_oce).GT.epsfra.OR. |
---|
1502 | . pctsrf(i,is_sic).GT.epsfra) THEN |
---|
1503 | zx_tmp_fi2d(i) = (ftsol(i, is_oce) * pctsrf(i,is_oce)+ |
---|
1504 | . ftsol(i, is_sic) * pctsrf(i,is_sic))/ |
---|
1505 | . (pctsrf(i,is_oce)+pctsrf(i,is_sic)) |
---|
1506 | ELSE |
---|
1507 | zx_tmp_fi2d(i) = 273.15 |
---|
1508 | ENDIF |
---|
1509 | ENDDO |
---|
1510 | c |
---|
1511 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1512 | CALL histwrite_phy(nid_mth,"t_oce_sic",itau_w,zx_tmp_fi2d) |
---|
1513 | c |
---|
1514 | IF (OCEAN.EQ.'force ') THEN |
---|
1515 | c |
---|
1516 | DO i=1, klon |
---|
1517 | IF((pctsrf(i,is_oce).GT.epsfra).OR. |
---|
1518 | . (pctsrf(i,is_sic).GT.epsfra)) THEN |
---|
1519 | zx_tmp_fi2d(i) = (radsol(i) + fluxo(i))*pctsrf(i,is_oce)+ |
---|
1520 | . fluxg(i)*pctsrf(i,is_sic) |
---|
1521 | ELSE |
---|
1522 | zx_tmp_fi2d(i) = 1.E+20 |
---|
1523 | ENDIF |
---|
1524 | ENDDO |
---|
1525 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1526 | CALL histwrite_phy(nid_mth,"lmt_bils",itau_w, |
---|
1527 | . zx_tmp_fi2d) |
---|
1528 | c |
---|
1529 | ELSE IF (OCEAN.EQ.'slab ') THEN |
---|
1530 | c |
---|
1531 | c |
---|
1532 | DO i=1, klon |
---|
1533 | IF((pctsrf(i,is_oce).GT.epsfra).OR. |
---|
1534 | . (pctsrf(i,is_sic).GT.epsfra)) THEN |
---|
1535 | zx_tmp_fi2d(i) = (radsol(i) + fluxo(i))*pctsrf(i,is_oce)+ |
---|
1536 | . fluxg(i)*pctsrf(i,is_sic) |
---|
1537 | ELSE |
---|
1538 | zx_tmp_fi2d(i) = 1.E+20 |
---|
1539 | ENDIF |
---|
1540 | ENDDO |
---|
1541 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1542 | CALL histwrite_phy(nid_mth,"slab_bils",itau_w, |
---|
1543 | . zx_tmp_fi2d) |
---|
1544 | c |
---|
1545 | DO i=1, klon |
---|
1546 | IF(pctsrf(i,is_oce).GT.epsfra.OR. |
---|
1547 | $ pctsrf(i,is_sic).GT.epsfra) THEN |
---|
1548 | zx_tmp_fi2d(i)=tslab(i) |
---|
1549 | ELSE |
---|
1550 | zx_tmp_fi2d(i) = 1.E+20 |
---|
1551 | ENDIF |
---|
1552 | ENDDO !i=1, klon |
---|
1553 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
1554 | CALL histwrite_phy(nid_mth,"tslab",itau_w,zx_tmp_fi2d) |
---|
1555 | c |
---|
1556 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, seaice,zx_tmp_2d) |
---|
1557 | CALL histwrite_phy(nid_mth,"seaice",itau_w,seaice) |
---|
1558 | c |
---|
1559 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, seaice/1000.,zx_tmp_2d) |
---|
1560 | CALL histwrite_phy(nid_mth,"siceh",itau_w,seaice/1000.) |
---|
1561 | c |
---|
1562 | ENDIF !OCEAN.EQ.force/slab |
---|
1563 | c |
---|
1564 | ENDIF !lev_histmth.GE.1 |
---|
1565 | c |
---|
1566 | IF(lev_histmth.GE.2) THEN |
---|
1567 | c |
---|
1568 | c Champs 3D: |
---|
1569 | C |
---|
1570 | c |
---|
1571 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, flwc,zx_tmp_3d) |
---|
1572 | CALL histwrite_phy(nid_mth,"lwcon",itau_w,flwc) |
---|
1573 | c |
---|
1574 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, fiwc,zx_tmp_3d) |
---|
1575 | CALL histwrite_phy(nid_mth,"iwcon",itau_w,fiwc) |
---|
1576 | c |
---|
1577 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d) |
---|
1578 | CALL histwrite_phy(nid_mth,"temp",itau_w,t_seri) |
---|
1579 | c |
---|
1580 | c#ifdef histmthNMC |
---|
1581 | c#include "write_histmthNMC.h" |
---|
1582 | c#endif |
---|
1583 | c |
---|
1584 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, qx(1,1,ivap), zx_tmp_3d) |
---|
1585 | CALL histwrite_phy(nid_mth,"ovap",itau_w, qx(:,:,ivap)) |
---|
1586 | c |
---|
1587 | c zx_tmp_fi3d(1:klon,1:klev)=qx(1:klon,1:klev,ivap)/ |
---|
1588 | c . (1-qx(1:klon,1:klev,ivap)) |
---|
1589 | c CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zx_tmp_fi3d, zx_tmp_3d) |
---|
1590 | c CALL histwrite_phy(nid_mth,"wvap",itau_w,zx_tmp_3d, |
---|
1591 | c . iim*jjmp1*klev,ndex3d) |
---|
1592 | c |
---|
1593 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zphi, zx_tmp_3d) |
---|
1594 | CALL histwrite_phy(nid_mth,"geop",itau_w,zphi) |
---|
1595 | c |
---|
1596 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, u_seri, zx_tmp_3d) |
---|
1597 | CALL histwrite_phy(nid_mth,"vitu",itau_w,u_seri) |
---|
1598 | c |
---|
1599 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, v_seri, zx_tmp_3d) |
---|
1600 | CALL histwrite_phy(nid_mth,"vitv",itau_w,v_seri) |
---|
1601 | c |
---|
1602 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, omega, zx_tmp_3d) |
---|
1603 | CALL histwrite_phy(nid_mth,"vitw",itau_w,omega) |
---|
1604 | c |
---|
1605 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, pplay, zx_tmp_3d) |
---|
1606 | CALL histwrite_phy(nid_mth,"pres",itau_w,pplay) |
---|
1607 | c |
---|
1608 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldfra*100., zx_tmp_3d) |
---|
1609 | CALL histwrite_phy(nid_mth,"rneb",itau_w,cldfra*100.) |
---|
1610 | c |
---|
1611 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, rnebcon, zx_tmp_3d) |
---|
1612 | CALL histwrite_phy(nid_mth,"rnebcon",itau_w,rnebcon) |
---|
1613 | c |
---|
1614 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zx_rh, zx_tmp_3d) |
---|
1615 | CALL histwrite_phy(nid_mth,"rhum",itau_w,zx_rh) |
---|
1616 | c |
---|
1617 | DO k=1, klev |
---|
1618 | DO i=1, klon |
---|
1619 | cIM 151004 zx_tmp_fi3d(i,k)=MAX(wo(i,k),1.0e-12)*RG/46.6968 |
---|
1620 | c $ /(paprs(i,k)-paprs(i,k+1)) |
---|
1621 | c $ *(paprs(i,1)/101325.0) |
---|
1622 | c zx_tmp2_fi3d(i,k)=MAX(wo(i,k)*1.0e+6,1.0e-6)*RG/46.6968 |
---|
1623 | zx_tmp_fi3d(i,k)=wo(i,k)*RG/46.6968 |
---|
1624 | $ /(paprs(i,k)-paprs(i,k+1)) |
---|
1625 | $ *(paprs(i,1)/101325.0) |
---|
1626 | ENDDO !i |
---|
1627 | ENDDO !k |
---|
1628 | c |
---|
1629 | c CALL gr_fi_ecrit(klev,klon,iim,jjmp1, wo, zx_tmp_3d) |
---|
1630 | c CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp2_fi3d,zx_tmp_3d) |
---|
1631 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1632 | CALL histwrite_phy(nid_mth,"ozone",itau_w,zx_tmp_fi3d) |
---|
1633 | c |
---|
1634 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_t, zx_tmp_3d) |
---|
1635 | CALL histwrite_phy(nid_mth,"dtphy",itau_w,d_t) |
---|
1636 | c |
---|
1637 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_qx(:,:,ivap),zx_tmp_3d) |
---|
1638 | CALL histwrite_phy(nid_mth,"dqphy",itau_w,d_qx(:,:,ivap)) |
---|
1639 | c |
---|
1640 | ENDIF !lev_histmth.GE.2 |
---|
1641 | c |
---|
1642 | IF(lev_histmth.GE.3) THEN |
---|
1643 | c |
---|
1644 | DO nsrf=1, nbsrf |
---|
1645 | c |
---|
1646 | zx_tmp_fi2d(1 : klon) = falbe( 1 : klon, nsrf) |
---|
1647 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1648 | CALL histwrite_phy(nid_mth,"albe_"//clnsurf(nsrf),itau_w, |
---|
1649 | $ zx_tmp_fi2d) |
---|
1650 | C |
---|
1651 | zx_tmp_fi2d(1 : klon) = frugs( 1 : klon, nsrf) |
---|
1652 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
1653 | CALL histwrite_phy(nid_mth,"rugs_"//clnsurf(nsrf),itau_w, |
---|
1654 | $ zx_tmp_fi2d) |
---|
1655 | c |
---|
1656 | zx_tmp_fi2d(1 : klon) = agesno( 1 : klon, nsrf) |
---|
1657 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, agesno,zx_tmp_2d) |
---|
1658 | CALL histwrite_phy(nid_mth,"ages_"//clnsurf(nsrf),itau_w |
---|
1659 | $ ,agesno) |
---|
1660 | c |
---|
1661 | ENDDO !nsrf=1, nbsrf |
---|
1662 | c |
---|
1663 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, albsol,zx_tmp_2d) |
---|
1664 | CALL histwrite_phy(nid_mth,"albs",itau_w,albsol) |
---|
1665 | c |
---|
1666 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, albsollw,zx_tmp_2d) |
---|
1667 | CALL histwrite_phy(nid_mth,"albslw",itau_w,albsollw) |
---|
1668 | c |
---|
1669 | ENDIF !lev_histmth.GE.3 |
---|
1670 | c |
---|
1671 | c |
---|
1672 | IF(lev_histmth.GE.4) THEN |
---|
1673 | c |
---|
1674 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, clwcon0, zx_tmp_3d) |
---|
1675 | CALL histwrite_phy(nid_mth,"clwcon",itau_w,clwcon0) |
---|
1676 | c |
---|
1677 | IF (iflag_con.GE.3) THEN |
---|
1678 | c |
---|
1679 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, Ma, zx_tmp_3d) |
---|
1680 | CALL histwrite_phy(nid_mth,"Ma",itau_w,Ma) |
---|
1681 | c |
---|
1682 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, upwd, zx_tmp_3d) |
---|
1683 | CALL histwrite_phy(nid_mth,"upwd",itau_w,upwd) |
---|
1684 | c |
---|
1685 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, dnwd, zx_tmp_3d) |
---|
1686 | CALL histwrite_phy(nid_mth,"dnwd",itau_w,dnwd) |
---|
1687 | c |
---|
1688 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, dnwd0, zx_tmp_3d) |
---|
1689 | CALL histwrite_phy(nid_mth,"dnwd0",itau_w,dnwd0) |
---|
1690 | c |
---|
1691 | ENDIF !iflag_con.GE.3 |
---|
1692 | c |
---|
1693 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_t_dyn, zx_tmp_3d) |
---|
1694 | CALL histwrite_phy(nid_mth,"dtdyn",itau_w,d_t_dyn) |
---|
1695 | c |
---|
1696 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_q_dyn, zx_tmp_3d) |
---|
1697 | CALL histwrite_phy(nid_mth,"dqdyn",itau_w,d_q_dyn) |
---|
1698 | c |
---|
1699 | cIM: 101003 : K/30min ==> K/s |
---|
1700 | c |
---|
1701 | zx_tmp_fi3d(1:klon,1:klev)=d_q_con(1:klon,1:klev)/pdtphys |
---|
1702 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1703 | CALL histwrite_phy(nid_mth,"dqcon",itau_w,zx_tmp_fi3d) |
---|
1704 | c |
---|
1705 | cIM: 101003 : K/30min ==> K/s |
---|
1706 | zx_tmp_fi3d(1:klon, 1:klev)=(d_t_lsc(1:klon,1:klev)+ |
---|
1707 | . d_t_eva(1:klon,1:klev))/pdtphys |
---|
1708 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zx_tmp_fi3d, zx_tmp_3d) |
---|
1709 | CALL histwrite_phy(nid_mth,"dtlschr",itau_w,zx_tmp_fi3d) |
---|
1710 | c |
---|
1711 | zx_tmp_fi3d(1:klon,1:klev)=d_q_lsc(1:klon,1:klev)/pdtphys |
---|
1712 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1713 | CALL histwrite_phy(nid_mth,"dqlsc",itau_w,zx_tmp_fi3d) |
---|
1714 | c |
---|
1715 | cIM: 101003 : K/30min ==> K/s |
---|
1716 | zx_tmp_fi3d(1:klon,1:klev)=d_t_vdf(1:klon,1:klev)/pdtphys |
---|
1717 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1718 | CALL histwrite_phy(nid_mth,"dtvdf",itau_w,zx_tmp_fi3d) |
---|
1719 | c |
---|
1720 | zx_tmp_fi3d(1:klon,1:klev)=d_q_vdf(1:klon,1:klev)/pdtphys |
---|
1721 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1722 | CALL histwrite_phy(nid_mth,"dqvdf",itau_w,zx_tmp_fi3d) |
---|
1723 | c |
---|
1724 | cIM: 101003 : K/30min ==> K/s |
---|
1725 | zx_tmp_fi3d(1:klon,1:klev)=d_t_eva(1:klon,1:klev)/pdtphys |
---|
1726 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1727 | CALL histwrite_phy(nid_mth,"dteva",itau_w,zx_tmp_fi3d) |
---|
1728 | c |
---|
1729 | zx_tmp_fi3d(1:klon,1:klev)=d_q_eva(1:klon,1:klev)/pdtphys |
---|
1730 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1731 | CALL histwrite_phy(nid_mth,"dqeva",itau_w,zx_tmp_fi3d) |
---|
1732 | c |
---|
1733 | zpt_conv = 0. |
---|
1734 | where (ptconv) zpt_conv = 1. |
---|
1735 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zpt_conv, zx_tmp_3d) |
---|
1736 | CALL histwrite_phy(nid_mth,"ptconv",itau_w,zpt_conv) |
---|
1737 | c |
---|
1738 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, ratqs, zx_tmp_3d) |
---|
1739 | CALL histwrite_phy(nid_mth,"ratqs",itau_w,ratqs) |
---|
1740 | c |
---|
1741 | zx_tmp_fi3d(1:klon,1:klev)=d_q_ajs(1:klon,1:klev)/pdtphys |
---|
1742 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1743 | CALL histwrite_phy(nid_mth,"dqajs",itau_w,zx_tmp_fi3d) |
---|
1744 | c |
---|
1745 | cIM: 101003 : K/day ==> K/s |
---|
1746 | zx_tmp_fi3d(1:klon,1:klev)=heat(1:klon,1:klev)/RDAY |
---|
1747 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1748 | CALL histwrite_phy(nid_mth,"dtswr",itau_w,zx_tmp_fi3d) |
---|
1749 | c |
---|
1750 | cIM: 101003 : K/day ==> K/s |
---|
1751 | zx_tmp_fi3d(1:klon,1:klev)=heat0(1:klon,1:klev)/RDAY |
---|
1752 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1753 | CALL histwrite_phy(nid_mth,"dtsw0",itau_w,zx_tmp_fi3d) |
---|
1754 | c |
---|
1755 | cIM: 101003 : K/day ==> K/s |
---|
1756 | zx_tmp_fi3d(1:klon,1:klev)=-1.*cool(1:klon,1:klev)/RDAY |
---|
1757 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1758 | CALL histwrite_phy(nid_mth,"dtlwr",itau_w,zx_tmp_fi3d) |
---|
1759 | c |
---|
1760 | cIM: 101003 : K/day ==> K/s |
---|
1761 | zx_tmp_fi3d(1:klon,1:klev)=-1.*cool0(1:klon,1:klev)/RDAY |
---|
1762 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1763 | CALL histwrite_phy(nid_mth,"dtlw0",itau_w,zx_tmp_fi3d) |
---|
1764 | c |
---|
1765 | cIM: 101003 : deja en K/s |
---|
1766 | zx_tmp_fi3d(1:klon,1:klev)=d_t_ec(1:klon,1:klev) |
---|
1767 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1768 | CALL histwrite_phy(nid_mth,"dtec",itau_w,zx_tmp_fi3d) |
---|
1769 | c |
---|
1770 | zx_tmp_fi3d(1:klon,1:klev)=d_u_vdf(1:klon,1:klev)/pdtphys |
---|
1771 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1772 | CALL histwrite_phy(nid_mth,"duvdf",itau_w,zx_tmp_fi3d) |
---|
1773 | c |
---|
1774 | zx_tmp_fi3d(1:klon,1:klev)=d_v_vdf(1:klon,1:klev)/pdtphys |
---|
1775 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1776 | CALL histwrite_phy(nid_mth,"dvvdf",itau_w,zx_tmp_fi3d) |
---|
1777 | c |
---|
1778 | IF (ok_orodr) THEN |
---|
1779 | zx_tmp_fi3d(1:klon,1:klev)=d_u_oro(1:klon,1:klev)/pdtphys |
---|
1780 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1781 | CALL histwrite_phy(nid_mth,"duoro",itau_w,zx_tmp_fi3d) |
---|
1782 | c |
---|
1783 | zx_tmp_fi3d(1:klon,1:klev)=d_v_oro(1:klon,1:klev)/pdtphys |
---|
1784 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1785 | CALL histwrite_phy(nid_mth,"dvoro",itau_w,zx_tmp_fi3d) |
---|
1786 | c |
---|
1787 | ENDIF |
---|
1788 | C |
---|
1789 | IF (ok_orolf) THEN |
---|
1790 | zx_tmp_fi3d(1:klon,1:klev)=d_u_lif(1:klon,1:klev)/pdtphys |
---|
1791 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1792 | CALL histwrite_phy(nid_mth,"dulif",itau_w,zx_tmp_fi3d) |
---|
1793 | c |
---|
1794 | zx_tmp_fi3d(1:klon,1:klev)=d_v_lif(1:klon,1:klev)/pdtphys |
---|
1795 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
1796 | CALL histwrite_phy(nid_mth,"dvlif",itau_w,zx_tmp_fi3d) |
---|
1797 | ENDIF |
---|
1798 | C |
---|
1799 | IF (nqmax.GE.3) THEN |
---|
1800 | DO iq=3,nqmax |
---|
1801 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, qx(1,1,iq), zx_tmp_3d) |
---|
1802 | CALL histwrite_phy(nid_mth,tnom(iq),itau_w,qx(:,:,iq)) |
---|
1803 | ENDDO |
---|
1804 | ENDIF |
---|
1805 | c |
---|
1806 | ENDIF !lev_histmth.GE.4 |
---|
1807 | c |
---|
1808 | ENDIF !(type_run.EQ."AMIP") |
---|
1809 | c |
---|
1810 | if (ok_sync) then |
---|
1811 | c$OMP MASTER |
---|
1812 | call histsync(nid_mth) |
---|
1813 | c$OMP END MASTER |
---|
1814 | endif |
---|
1815 | c |
---|
1816 | ENDIF !ok_mensuel |
---|