Changeset 644 for LMDZ4/trunk/libf/phylmd/write_histday.h
- Timestamp:
- May 25, 2005, 3:10:09 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phylmd/write_histday.h
r532 r644 1 ! 2 !$Header$3 ! 4 IF(ok_journe) THEN1 c 2 c $Header$ 3 c 4 if (ok_journe) THEN 5 5 c 6 6 ndex2d = 0 … … 9 9 c Champs 2D: 10 10 c 11 zsto = dtime12 zout = dtime * FLOAT(ecrit_day)13 11 itau_w = itau_phy + itap 14 12 15 i = NINT(zout/zsto)16 CALL gr_fi_ecrit(1,klon,iim,jjmp1,pphis,zx_tmp_2d)17 13 c 18 14 IF(lev_histday.GE.1) THEN 19 15 c 16 CALL gr_fi_ecrit(1,klon,iim,jjmp1,pphis,zx_tmp_2d) 20 17 CALL histwrite(nid_day,"phis",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 21 varname = 'phis' 22 vartitle= 'Surface geop. height' 23 varunits= '-' 24 c 25 i = NINT(zout/zsto) 18 c 19 cIM 310804 CALL gr_fi_ecrit(1,klon,iim,jjmp1,paire,zx_tmp_2d) 26 20 CALL gr_fi_ecrit(1,klon,iim,jjmp1,airephy,zx_tmp_2d) 27 21 CALL histwrite(nid_day,"aire",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 28 varname = 'aire'29 vartitle= 'Grid area'30 varunits= '-'31 22 c 32 23 DO i=1, klon … … 125 116 CALL histwrite(nid_day,"snowf",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 126 117 c 127 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxsnow,zx_tmp_2d) 128 CALL histwrite(nid_day,"snow_mass",itau_w,zx_tmp_2d,iim*jjmp1, 129 . ndex2d) 118 cIM: 140404 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxsnow,zx_tmp_2d) 119 c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zsnow_mass,zx_tmp_2d) 120 c CALL histwrite(nid_day,"snow_mass",itau_w,zx_tmp_2d,iim*jjmp1, 121 c . ndex2d) 130 122 c 131 123 CALL gr_fi_ecrit(1, klon,iim,jjmp1, evap,zx_tmp_2d) … … 164 156 165 157 c Ecriture de champs dynamiques sur des niveaux de pression 166 DO k=1, nlevENS 167 c 168 CALL gr_fi_ecrit(1, klon,iim,jjmp1, ulev(:,k),zx_tmp_2d) 169 CALL histwrite(nid_day,"u"//clev(k),itau_w,zx_tmp_2d, 158 c DO k=1, nlevENS 159 DO k=1, nlevSTD 160 c 161 c bb=clevSTD(k) 162 c 163 IF(k.GE.2.AND.k.LE.12) bb2=clevSTD(k) 164 IF(k.GE.13.AND.k.LE.17) bb3=clevSTD(k) 165 c aa=clevSTD(k) 166 c bb=aa(1:lnblnk1(aa)) 167 c ENDIF 168 c 169 IF(bb2.EQ."850".OR.bb2.EQ."700" 170 $ .OR.bb2.EQ."500".OR.bb2.EQ."200") THEN 171 c 172 CALL gr_fi_ecrit(1, klon,iim,jjmp1,usumSTD(:,k,1),zx_tmp_2d) 173 CALL histwrite(nid_day,"u"//bb2,itau_w,zx_tmp_2d, 170 174 $ iim*jjmp1,ndex2d) 171 175 c 172 CALL gr_fi_ecrit(1, klon,iim,jjmp1, vlev(:,k),zx_tmp_2d)173 CALL histwrite(nid_day,"v"// clev(k),itau_w,zx_tmp_2d,176 CALL gr_fi_ecrit(1, klon,iim,jjmp1,vsumSTD(:,k,1),zx_tmp_2d) 177 CALL histwrite(nid_day,"v"//bb2,itau_w,zx_tmp_2d, 174 178 $ iim*jjmp1,ndex2d) 175 179 c 176 ENDDO !nlevENS 177 c 178 DO k=1, nlevENS 179 IF(clev(k).EQ."500") THEN 180 c 181 CALL gr_fi_ecrit(1, klon,iim,jjmp1, wlev(:,indENS(k)),zx_tmp_2d) 182 CALL histwrite(nid_day,"w500",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 183 c 184 c DO i=1, klon 185 c print*,' ind, phi 500hPa',i,indENS(k),philev(:,indENS(k)) 186 c print*,' ind, phi 500hPa',i,indENS(k) 187 c ENDDO 188 c 189 cBAD CALL gr_fi_ecrit(1, klon,iim,jjmp1, philev(:,indENS(k)),zx_tmp_2d) 190 CALL gr_fi_ecrit(1, klon,iim,jjmp1, philev(:,k),zx_tmp_2d) 191 CALL histwrite(nid_day,"phi500",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 192 c 193 ENDIF !clev(k).EQ.500 194 ENDDO !k=1, nlevENS 180 ENDIF !(bb2.EQ."850".OR.bb2.EQ."700".OR.bb2.EQ."500".OR.bb2.EQ."200") THEN 181 c 182 c w500 183 c 184 IF(bb2.EQ."500") THEN 185 c 186 CALL gr_fi_ecrit(1, klon,iim,jjmp1,wsumSTD(:,k,1),zx_tmp_2d) 187 CALL histwrite(nid_day,"w"//bb2,itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 188 c 189 CALL gr_fi_ecrit(1, klon,iim,jjmp1,phisumSTD(:,k,1),zx_tmp_2d) 190 CALL histwrite(nid_day,"phi"//bb2,itau_w,zx_tmp_2d, 191 $ iim*jjmp1,ndex2d) 192 193 ENDIF !(bb2.EQ."500") THEN 194 c 195 ENDDO !nlevSTD 195 196 c 196 197 CALL gr_fi_ecrit(1, klon,iim,jjmp1, slp,zx_tmp_2d) … … 216 217 CALL histwrite(nid_day, "SWdnSFC",itau_w,zx_tmp_2d, 217 218 . iim*jjmp1,ndex2d) 219 c 220 IF (OCEAN.EQ.'force ') THEN 221 c 222 DO i=1, klon 223 IF((pctsrf(i,is_oce).GT.epsfra).OR. 224 . (pctsrf(i,is_sic).GT.epsfra)) THEN 225 zx_tmp_fi2d(i) = (radsol(i) + fluxo(i))*pctsrf(i,is_oce)+ 226 . fluxg(i)*pctsrf(i,is_sic) 227 ELSE 228 zx_tmp_fi2d(i) = 1.E+20 229 ENDIF 230 ENDDO 231 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 232 CALL histwrite(nid_day,"lmt_bils",itau_w, 233 . zx_tmp_2d,iim*jjmp1,ndex2d) 234 c 235 ELSE IF (OCEAN.EQ.'slab ') THEN 236 c 237 DO i=1, klon 238 IF((pctsrf(i,is_oce).GT.epsfra).OR. 239 . (pctsrf(i,is_sic).GT.epsfra)) THEN 240 zx_tmp_fi2d(i) = (radsol(i) + fluxo(i))*pctsrf(i,is_oce)+ 241 . fluxg(i)*pctsrf(i,is_sic) 242 ELSE 243 zx_tmp_fi2d(i) = 1.E+20 244 ENDIF 245 ENDDO 246 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 247 CALL histwrite(nid_day,"slab_bils",itau_w, 248 . zx_tmp_2d,iim*jjmp1,ndex2d) 249 c 250 DO i=1, klon 251 IF(pctsrf(i,is_oce).GT.epsfra.OR. 252 $ pctsrf(i,is_sic).GT.epsfra) THEN 253 zx_tmp_fi2d(i)=tslab(i) 254 ELSE 255 zx_tmp_fi2d(i) = 1.E+20 256 ENDIF 257 ENDDO !i=1, klon 258 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 259 CALL histwrite(nid_day,"tslab",itau_w,zx_tmp_2d, 260 . iim*jjmp1,ndex2d) 261 c 262 CALL gr_fi_ecrit(1, klon,iim,jjmp1, seaice,zx_tmp_2d) 263 CALL histwrite(nid_day,"seaice",itau_w,zx_tmp_2d, 264 . iim*jjmp1,ndex2d) 265 c 266 CALL gr_fi_ecrit(1, klon,iim,jjmp1, seaice/1000.,zx_tmp_2d) 267 CALL histwrite(nid_day,"siceh",itau_w,zx_tmp_2d, 268 . iim*jjmp1,ndex2d) 269 c 270 ENDIF !(OCEAN.EQ.'slab ') THEN 271 c 272 DO i=1, klon 273 IF (pctsrf(i,is_oce).GT.epsfra) THEN 274 zx_tmp_fi2d(i) = fluxo(i) 275 ELSE 276 zx_tmp_fi2d(i) = 1.E+20 277 ENDIF 278 ENDDO 279 c 280 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 281 CALL histwrite(nid_day,"fluxo",itau_w,zx_tmp_2d, 282 . iim*jjmp1,ndex2d) 283 c 284 DO i=1, klon 285 IF (pctsrf(i,is_sic).GT.epsfra) THEN 286 zx_tmp_fi2d(i) = fluxg(i) 287 ELSE 288 zx_tmp_fi2d(i) = 1.E+20 289 ENDIF 290 ENDDO 291 c 292 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 293 CALL histwrite(nid_day,"fluxg",itau_w,zx_tmp_2d, 294 . iim*jjmp1,ndex2d) 218 295 c 219 296 ENDIF !lev_histday.GE.1 … … 398 475 DO nsrf = 1, nbsrf 399 476 C 477 zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf)*100. 478 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) 479 CALL histwrite(nid_day,"pourc_"//clnsurf(nsrf),itau_w, 480 $ zx_tmp_2d,iim*jjmp1,ndex2d) 481 C 400 482 zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf) 401 483 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) 402 CALL histwrite(nid_day," pourc_"//clnsurf(nsrf),itau_w,484 CALL histwrite(nid_day,"fract_"//clnsurf(nsrf),itau_w, 403 485 $ zx_tmp_2d,iim*jjmp1,ndex2d) 404 486 C … … 444 526 ENDIF !lev_histday.GE.4 445 527 c 528 IF(lev_histday.GE.5) THEN !lev_histday.GE.5 529 c 530 c rajout sorties F. Aires 531 c 532 CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw0,zx_tmp_2d) 533 CALL histwrite(nid_day,"tops0",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 534 c 535 CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw0,zx_tmp_2d) 536 CALL histwrite(nid_day,"topl0",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 537 c 538 CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw0,zx_tmp_2d) 539 CALL histwrite(nid_day,"sols0",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 540 c 541 CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw0,zx_tmp_2d) 542 CALL histwrite(nid_day,"soll0",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 543 c 544 CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldfra, zx_tmp_3d) 545 CALL histwrite(nid_day,"rneb",itau_w,zx_tmp_3d, 546 . iim*jjmp1*klev,ndex3d) 547 c 548 CALL gr_fi_ecrit(klev,klon,iim,jjmp1, rnebcon, zx_tmp_3d) 549 CALL histwrite(nid_day,"rnebcon",itau_w,zx_tmp_3d, 550 . iim*jjmp1*klev,ndex3d) 551 c 552 CALL gr_fi_ecrit(klev,klon,iim,jjmp1, flwc,zx_tmp_3d) 553 CALL histwrite(nid_day,"lwcon",itau_w,zx_tmp_3d, 554 . iim*jjmp1*klev,ndex3d) 555 c 556 CALL gr_fi_ecrit(klev,klon,iim,jjmp1, fiwc,zx_tmp_3d) 557 CALL histwrite(nid_day,"iwcon",itau_w,zx_tmp_3d, 558 . iim*jjmp1*klev,ndex3d) 559 c 560 zx_tmp_fi2d(1:klon) = flwp(1:klon) 561 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 562 CALL histwrite(nid_day,"lwp",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 563 c 564 zx_tmp_fi2d(1:klon) = fiwp(1:klon) 565 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 566 CALL histwrite(nid_day,"iwp",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) 567 c 568 CALL gr_fi_ecrit(1,klon,iim,jjmp1, meantaucld,zx_tmp_2d) 569 CALL histwrite(nid_day,"meantaucld",itau_w,zx_tmp_2d, 570 . iim*jjmp1,ndex2d) 571 c 572 CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldtau,zx_tmp_3d) 573 CALL histwrite(nid_day,"cldtau",itau_w,zx_tmp_3d, 574 . iim*jjmp1*klev,ndex3d) 575 c 576 CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldemi,zx_tmp_3d) 577 CALL histwrite(nid_day,"cldemi",itau_w,zx_tmp_3d, 578 . iim*jjmp1*klev,ndex3d) 579 c 580 ENDIF !lev_histday.GE.5 446 581 c================================================================= 447 582 c=================================================================
Note: See TracChangeset
for help on using the changeset viewer.