Changeset 591 for LMDZ4/trunk
- Timestamp:
- Feb 7, 2005, 5:41:55 PM (20 years ago)
- Location:
- LMDZ4/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phylmd/param_cou.h
r524 r591 9 9 PARAMETER(jpmaxfld = 40) ! Maximum number of fields exchanged 10 10 ! between ocean and atmosphere 11 ! -- LOOP 11 12 INTEGER jpflda2o1 12 PARAMETER(jpflda2o1 = 1 2)! Number of fields exchanged from13 PARAMETER(jpflda2o1 = 13) ! Number of fields exchanged from 13 14 ! atmosphere to ocean via flx.F 15 ! -- LOOP 14 16 INTEGER jpflda2o2 15 17 PARAMETER(jpflda2o2 = 6) ! Number of fields exchanged from -
LMDZ4/trunk/libf/phylmd/write_histhf.h
r524 r591 98 98 zx_tmp_fi2d(1 : klon) = fsolsw( 1 : klon, is_ter) 99 99 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) 100 CALL histwrite(nid_hf,"SWnetOR",itau_w, 101 $ zx_tmp_2d,iim*jjmp1,ndex2d) 102 c 103 zx_tmp_fi2d(1:klon) = solsw(1:klon)/(1.-albsol(1:klon)) 104 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) 100 105 CALL histwrite(nid_hf,"SWdownOR",itau_w, 101 106 $ zx_tmp_2d,iim*jjmp1,ndex2d) … … 166 171 167 172 endif 173 ! 174 ! $Header$ 175 ! 176 if (ok_hf) then 177 178 c Comprendre comment marche el i=nint(zout/zsto) 179 c 180 c print*,'ACRITURE HF !!! ACRITURE HF !!! ACRITURE HF !!! ' 181 ndex2d = 0 182 ndex3d = 0 183 c 184 zsto = dtime 185 zout = dtime * ecrit_hf 186 itau_w = itau_phy + itap 187 c 188 IF(lev_histhf.GE.1) THEN 189 c 190 c i = NINT(zout/zsto) 191 c CALL gr_fi_ecrit(1,klon,iim,jjmp1,pphis,zx_tmp_2d) 192 c CALL histwrite(nid_hf,"phis",i,zx_tmp_2d,iim*jjmp1,ndex2d) 193 c 194 c i = NINT(zout/zsto) 195 c CALL gr_fi_ecrit(1,klon,iim,jjmp1,paire,zx_tmp_2d) 196 c CALL histwrite(nid_hf,"aire",i,zx_tmp_2d,iim*jjmp1,ndex2d) 197 C 198 CALL gr_fi_ecrit(1, klon,iim,jjmp1, paire_ter, zx_tmp_2d) 199 CALL histwrite(nid_hf,"aireTER",itau_w, 200 $ zx_tmp_2d,iim*jjmp1,ndex2d) 201 c 202 DO i=1, klon 203 zx_tmp_fi2d(i)=pctsrf(i,is_ter)+pctsrf(i,is_lic) 204 ENDDO 205 c 206 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) 207 CALL histwrite(nid_hf,"contfracATM",itau_w, 208 $ zx_tmp_2d,iim*jjmp1,ndex2d) 209 c 210 CALL gr_fi_ecrit(1,klon,iim,jjmp1,pctsrf_new(:,is_ter),zx_tmp_2d) 211 CALL histwrite(nid_hf,"contfracOR",itau_w, 212 $ zx_tmp_2d,iim*jjmp1,ndex2d) 213 c 214 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zt2m,zx_tmp_2d) 215 CALL histwrite(nid_hf,"t2m",itau_w,zx_tmp_2d,iim*jjmp1, 216 . ndex2d) 217 c 218 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zq2m,zx_tmp_2d) 219 CALL histwrite(nid_hf,"q2m",itau_w,zx_tmp_2d,iim*jjmp1, 220 . ndex2d) 221 c 222 DO i = 1, klon 223 zx_tmp_fi2d(i) = paprs(i,1) 224 ENDDO 225 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 226 CALL histwrite(nid_hf,"psol",itau_w,zx_tmp_2d,iim*jjmp1, 227 . ndex2d) 228 c 229 DO i = 1, klon 230 zx_tmp_fi2d(i) = rain_fall(i) + snow_fall(i) 231 ENDDO 232 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 233 CALL histwrite(nid_hf,"rain",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 234 c 235 c ENSEMBLES BEG 236 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxtsol,zx_tmp_2d) 237 CALL histwrite(nid_hf,"tsol",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 238 c 239 CALL gr_fi_ecrit(1, klon,iim,jjmp1, slp,zx_tmp_2d) 240 CALL histwrite(nid_hf,"slp",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 241 c 242 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zu10m,zx_tmp_2d) 243 CALL histwrite(nid_hf,"u10m",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 244 c 245 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zv10m,zx_tmp_2d) 246 CALL histwrite(nid_hf,"v10m",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 247 c 248 DO i=1, klon 249 zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i)) 250 ENDDO 251 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 252 CALL histwrite(nid_hf,"wind10m",itau_w,zx_tmp_2d, 253 $ iim*jjmp1,ndex2d) 254 c 255 DO k=1, nlevENS 256 IF(clev(k).EQ."500") THEN 257 CALL gr_fi_ecrit(1, klon,iim,jjmp1, philev(:,k),zx_tmp_2d) 258 CALL histwrite(nid_hf,"phi"//clev(k),itau_w,zx_tmp_2d, 259 $ iim*jjmp1,ndex2d) 260 ENDIF !clev(k).EQ."500" 261 ENDDO 262 c 263 ENDIF !lev_histhf.GE.1 264 c 265 IF(lev_histhf.GE.2) THEN 266 c 267 CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldt,zx_tmp_2d) 268 CALL histwrite(nid_hf,"cldt",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 269 c 270 c -- LOOP 271 zx_tmp_fi2d(1 : klon) = fsolsw( 1 : klon, is_ter) 272 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) 273 CALL histwrite(nid_hf,"SWnetOR",itau_w, 274 $ zx_tmp_2d,iim*jjmp1,ndex2d) 275 c 276 CALL gr_fi_ecrit(1, klon,iim,jjmp1, swdownor , zx_tmp_2d) 277 CALL histwrite(nid_hf,"SWdownOR",itau_w, 278 $ zx_tmp_2d,iim*jjmp1,ndex2d) 279 c -- LOOP 280 c 281 CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) 282 CALL histwrite(nid_hf,"LWdownOR",itau_w,zx_tmp_2d,iim*jjmp1, 283 $ ndex2d) 284 c 285 c 286 ENDIF !lev_histhf.GE.2 287 c 288 IF(lev_histhf.GE.3) THEN 289 c 290 DO k=1, nlevENS 291 c 292 CALL gr_fi_ecrit(1, klon,iim,jjmp1, tlev(:,k),zx_tmp_2d) 293 CALL histwrite(nid_hf,"t"//clev(k),itau_w,zx_tmp_2d, 294 $ iim*jjmp1,ndex2d) 295 c 296 IF(clev(k).NE."500") THEN !clev(k).NE."500" 297 CALL gr_fi_ecrit(1, klon,iim,jjmp1, philev(:,k),zx_tmp_2d) 298 CALL histwrite(nid_hf,"phi"//clev(k),itau_w,zx_tmp_2d, 299 $ iim*jjmp1,ndex2d) 300 ENDIF !clev(k).NE."500" 301 c 302 CALL gr_fi_ecrit(1, klon,iim,jjmp1, qlev(:,k),zx_tmp_2d) 303 CALL histwrite(nid_hf,"q"//clev(k),itau_w,zx_tmp_2d, 304 $ iim*jjmp1,ndex2d) 305 c 306 IF(1.EQ.0) THEN 307 CALL gr_fi_ecrit(1, klon,iim,jjmp1, rhlev(:,k),zx_tmp_2d) 308 CALL histwrite(nid_hf,"rh"//clev(k),itau_w,zx_tmp_2d, 309 $ iim*jjmp1,ndex2d) 310 ENDIF !1.EQ.0 311 c 312 CALL gr_fi_ecrit(1, klon,iim,jjmp1, ulev(:,k),zx_tmp_2d) 313 CALL histwrite(nid_hf,"u"//clev(k),itau_w,zx_tmp_2d, 314 $ iim*jjmp1,ndex2d) 315 c 316 CALL gr_fi_ecrit(1, klon,iim,jjmp1, vlev(:,k),zx_tmp_2d) 317 CALL histwrite(nid_hf,"v"//clev(k),itau_w,zx_tmp_2d, 318 $ iim*jjmp1,ndex2d) 319 c 320 ENDDO !nlevENS 321 c 322 IF(1.EQ.0) THEN 323 CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragm,zx_tmp_2d) 324 CALL histwrite(nid_hf,"cdrm",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 325 c 326 CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragh,zx_tmp_2d) 327 CALL histwrite(nid_hf,"cdrh",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 328 ENDIF !(1.EQ.0) THEN 329 c 330 ENDIF !lev_histhf.GE.3 331 c 332 IF(lev_histhf.GE.4) THEN 333 c 334 #define histhf3d 335 #ifdef histhf3d 336 #include "write_histhf3d.h" 337 #endif 338 c 339 ENDIF !lev_histhf.GE.4 340 c 341 if (ok_sync) then 342 call histsync(nid_hf) 343 endif 344 345 endif
Note: See TracChangeset
for help on using the changeset viewer.