Changeset 1809 for LMDZ5/trunk/libf
- Timestamp:
- Jul 22, 2013, 6:08:34 PM (11 years ago)
- Location:
- LMDZ5/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/phys_output_mod.F90
r1808 r1809 339 339 ENDDO ! iff 340 340 341 ! On déclare les sorties avec un premier appel à phys_output_write:342 343 CALL phys_output_write( 1, pdtphys, paprs, pphis, &341 ! ug On déclare les sorties avec un premier appel à phys_output_write: 342 ! on utilise itap=0 pour signaler à histwrite qu'il s'agit du passage de définition 343 CALL phys_output_write(0, pdtphys, paprs, pphis, & 344 344 & pplay, lmax_th, aerosol_couple, & 345 345 & ok_ade, ok_aie, ivap, new_aod, ok_sync, & -
LMDZ5/trunk/libf/phylmd/phys_output_write_F90.h
r1807 r1809 1 1 ! ug Si itap == 0 alors on ne fait pas de calculs, juste des appels à histwrite pour définir les variables de sorties 2 2 3 3 !!! Champs 1D !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 4 4 CALL histwrite_phy(o_phis, pphis) 5 5 CALL histwrite_phy(o_aire, airephy) 6 7 IF (itap > 0) THEN 6 8 DO i=1, klon 7 9 zx_tmp_fi2d(i)=pctsrf(i,is_ter)+pctsrf(i,is_lic) 8 10 ENDDO 11 ENDIF 12 9 13 CALL histwrite_phy(o_contfracATM, zx_tmp_fi2d) 10 14 CALL histwrite_phy(o_contfracOR, pctsrf(:,is_ter)) … … 18 22 CALL histwrite_phy(o_t2m_max, zt2m) 19 23 24 IF (itap > 0) THEN 20 25 DO i=1, klon 21 26 zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i)) 22 27 ENDDO 28 ENDIF 23 29 CALL histwrite_phy(o_wind10m, zx_tmp_fi2d) 24 30 31 IF (itap > 0) THEN 25 32 DO i=1, klon 26 33 zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i)) 27 34 ENDDO 35 ENDIF 28 36 CALL histwrite_phy(o_wind10max, zx_tmp_fi2d) 29 37 38 IF (itap > 0) THEN 30 39 DO i = 1, klon 31 40 zx_tmp_fi2d(i) = pctsrf(i,is_sic) 32 41 ENDDO 42 ENDIF 33 43 CALL histwrite_phy(o_sicf, zx_tmp_fi2d) 34 44 CALL histwrite_phy(o_q2m, zq2m) … … 36 46 CALL histwrite_phy(o_u10m, zu10m) 37 47 CALL histwrite_phy(o_v10m, zv10m) 48 49 IF (itap > 0) THEN 38 50 DO i = 1, klon 39 51 zx_tmp_fi2d(i) = paprs(i,1) 40 52 ENDDO 53 ENDIF 41 54 CALL histwrite_phy(o_psol, zx_tmp_fi2d) 42 55 CALL histwrite_phy(o_mass, zmasse) 43 56 CALL histwrite_phy(o_qsurf, zxqsurf) 44 if (.not. ok_veget) then 57 58 IF (.NOT. ok_veget) THEN 45 59 CALL histwrite_phy(o_qsol, qsol) 46 endif 60 ENDIF 61 62 IF (itap > 0) THEN 47 63 DO i = 1, klon 48 64 zx_tmp_fi2d(i) = rain_fall(i) + snow_fall(i) 49 65 ENDDO 66 ENDIF 67 50 68 CALL histwrite_phy(o_precip, zx_tmp_fi2d) 51 69 CALL histwrite_phy(o_ndayrain, nday_rain) 70 71 IF (itap > 0) THEN 52 72 DO i = 1, klon 53 73 zx_tmp_fi2d(i) = rain_lsc(i) + snow_lsc(i) 54 74 ENDDO 75 ENDIF 55 76 CALL histwrite_phy(o_plul, zx_tmp_fi2d) 77 78 IF (itap > 0) THEN 56 79 DO i = 1, klon 57 80 zx_tmp_fi2d(i) = rain_con(i) + snow_con(i) 58 81 ENDDO 82 ENDIF 59 83 CALL histwrite_phy(o_pluc, zx_tmp_fi2d) 60 84 CALL histwrite_phy(o_snow, snow_fall) … … 66 90 CALL histwrite_phy(o_topl, toplw) 67 91 CALL histwrite_phy(o_topl0, toplw0) 92 93 IF (itap > 0) THEN 68 94 zx_tmp_fi2d(1 : klon) = swup ( 1 : klon, klevp1 ) 95 ENDIF 69 96 CALL histwrite_phy(o_SWupTOA, zx_tmp_fi2d) 97 98 IF (itap > 0) THEN 70 99 zx_tmp_fi2d(1 : klon) = swup0 ( 1 : klon, klevp1 ) 100 ENDIF 71 101 CALL histwrite_phy(o_SWupTOAclr, zx_tmp_fi2d) 102 103 IF (itap > 0) THEN 72 104 zx_tmp_fi2d(1 : klon) = swdn ( 1 : klon, klevp1 ) 105 ENDIF 73 106 CALL histwrite_phy(o_SWdnTOA, zx_tmp_fi2d) 107 108 IF (itap > 0) THEN 74 109 zx_tmp_fi2d(1 : klon) = swdn0 ( 1 : klon, klevp1 ) 110 ENDIF 75 111 CALL histwrite_phy(o_SWdnTOAclr, zx_tmp_fi2d) 112 113 IF (itap > 0) THEN 76 114 zx_tmp_fi2d(:) = topsw(:)-toplw(:) 115 ENDIF 77 116 CALL histwrite_phy(o_nettop, zx_tmp_fi2d) 78 117 CALL histwrite_phy(o_SWup200, SWup200) … … 89 128 CALL histwrite_phy(o_radsol, radsol) 90 129 CALL histwrite_phy(o_soll0, sollw0) 130 131 IF (itap > 0) THEN 91 132 zx_tmp_fi2d(1 : klon) = swup ( 1 : klon, 1 ) 133 ENDIF 92 134 CALL histwrite_phy(o_SWupSFC, zx_tmp_fi2d) 135 136 IF (itap > 0) THEN 93 137 zx_tmp_fi2d(1 : klon) = swup0 ( 1 : klon, 1 ) 138 ENDIF 94 139 CALL histwrite_phy(o_SWupSFCclr, zx_tmp_fi2d) 140 141 IF (itap > 0) THEN 95 142 zx_tmp_fi2d(1 : klon) = swdn ( 1 : klon, 1 ) 143 ENDIF 96 144 CALL histwrite_phy(o_SWdnSFC, zx_tmp_fi2d) 145 146 IF (itap > 0) THEN 97 147 zx_tmp_fi2d(1 : klon) = swdn0 ( 1 : klon, 1 ) 148 ENDIF 98 149 CALL histwrite_phy(o_SWdnSFCclr, zx_tmp_fi2d) 150 151 IF (itap > 0) THEN 99 152 zx_tmp_fi2d(1:klon)=sollwdown(1:klon)-sollw(1:klon) 153 ENDIF 100 154 CALL histwrite_phy(o_LWupSFC, zx_tmp_fi2d) 101 155 CALL histwrite_phy(o_LWdnSFC, sollwdown) 102 156 157 IF (itap > 0) THEN 103 158 sollwdownclr(1:klon) = -1.*lwdn0(1:klon,1) 104 159 zx_tmp_fi2d(1:klon)=sollwdownclr(1:klon)-sollw0(1:klon) 160 ENDIF 105 161 CALL histwrite_phy(o_LWupSFCclr, zx_tmp_fi2d) 106 162 CALL histwrite_phy(o_LWdnSFCclr, sollwdownclr) … … 113 169 CALL histwrite_phy(o_bils_enthalp, bils_enthalp) 114 170 171 IF (itap > 0) THEN 115 172 zx_tmp_fi2d(1:klon)=-1*sens(1:klon) 116 173 ENDIF 117 174 CALL histwrite_phy(o_sens, zx_tmp_fi2d) 118 175 CALL histwrite_phy(o_fder, fder) … … 120 177 CALL histwrite_phy(o_fqcalving, zxfqcalving) 121 178 CALL histwrite_phy(o_fqfonte, zxfqfonte) 122 zx_tmp_fi2d=0. 123 do nsrf=1,nbsrf 124 zx_tmp_fi2d(:)=zx_tmp_fi2d(:)+pctsrf(:,nsrf)*fluxu(:,1,nsrf) 125 enddo 179 IF (itap > 0) THEN 180 zx_tmp_fi2d=0. 181 DO nsrf=1,nbsrf 182 zx_tmp_fi2d(:)=zx_tmp_fi2d(:)+pctsrf(:,nsrf)*fluxu(:,1,nsrf) 183 ENDDO 184 ENDIF 126 185 CALL histwrite_phy(o_taux, zx_tmp_fi2d) 127 zx_tmp_fi2d=0. 128 do nsrf=1,nbsrf 186 187 IF (itap > 0) THEN 188 zx_tmp_fi2d=0. 189 DO nsrf=1,nbsrf 129 190 zx_tmp_fi2d(:)=zx_tmp_fi2d(:)+pctsrf(:,nsrf)*fluxv(:,1,nsrf) 130 enddo 191 ENDDO 192 ENDIF 131 193 CALL histwrite_phy(o_tauy, zx_tmp_fi2d) 132 194 133 195 134 196 DO nsrf = 1, nbsrf 135 ! IF(nsrf.GE.2) THEN 136 zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf)*100. 197 IF (itap > 0) zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf)*100. 137 198 CALL histwrite_phy(o_pourc_srf(nsrf), zx_tmp_fi2d) 138 zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf)199 IF (itap > 0) zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf) 139 200 CALL histwrite_phy(o_fract_srf(nsrf), zx_tmp_fi2d) 140 ! ENDIF !nsrf.GT.2 141 zx_tmp_fi2d(1 : klon) = fluxu( 1 : klon, 1, nsrf) 201 IF (itap > 0) zx_tmp_fi2d(1 : klon) = fluxu( 1 : klon, 1, nsrf) 142 202 CALL histwrite_phy(o_taux_srf(nsrf), zx_tmp_fi2d) 143 zx_tmp_fi2d(1 : klon) = fluxv( 1 : klon, 1, nsrf)203 IF (itap > 0) zx_tmp_fi2d(1 : klon) = fluxv( 1 : klon, 1, nsrf) 144 204 CALL histwrite_phy(o_tauy_srf(nsrf), zx_tmp_fi2d) 145 zx_tmp_fi2d(1 : klon) = ftsol( 1 : klon, nsrf)205 IF (itap > 0) zx_tmp_fi2d(1 : klon) = ftsol( 1 : klon, nsrf) 146 206 CALL histwrite_phy(o_tsol_srf(nsrf), zx_tmp_fi2d) 147 zx_tmp_fi2d(1 : klon) = evap_pot( 1 : klon, nsrf)207 IF (itap > 0) zx_tmp_fi2d(1 : klon) = evap_pot( 1 : klon, nsrf) 148 208 CALL histwrite_phy(o_evappot_srf(nsrf), zx_tmp_fi2d) 149 zx_tmp_fi2d(1 : klon) = ustar(1 : klon, nsrf)209 IF (itap > 0) zx_tmp_fi2d(1 : klon) = ustar(1 : klon, nsrf) 150 210 CALL histwrite_phy(o_ustar_srf(nsrf), zx_tmp_fi2d) 151 zx_tmp_fi2d(1 : klon) = u10m(1 : klon, nsrf)211 IF (itap > 0) zx_tmp_fi2d(1 : klon) = u10m(1 : klon, nsrf) 152 212 CALL histwrite_phy(o_u10m_srf(nsrf), zx_tmp_fi2d) 153 zx_tmp_fi2d(1 : klon) = v10m(1 : klon, nsrf)213 IF (itap > 0) zx_tmp_fi2d(1 : klon) = v10m(1 : klon, nsrf) 154 214 CALL histwrite_phy(o_v10m_srf(nsrf), zx_tmp_fi2d) 155 zx_tmp_fi2d(1 : klon) = t2m(1 : klon, nsrf)215 IF (itap > 0) zx_tmp_fi2d(1 : klon) = t2m(1 : klon, nsrf) 156 216 CALL histwrite_phy(o_t2m_srf(nsrf), zx_tmp_fi2d) 157 zx_tmp_fi2d(1 : klon) = fevap(1 : klon, nsrf)217 IF (itap > 0) zx_tmp_fi2d(1 : klon) = fevap(1 : klon, nsrf) 158 218 CALL histwrite_phy(o_evap_srf(nsrf), zx_tmp_fi2d) 159 zx_tmp_fi2d(1 : klon) = fluxt( 1 : klon, 1, nsrf)219 IF (itap > 0) zx_tmp_fi2d(1 : klon) = fluxt( 1 : klon, 1, nsrf) 160 220 CALL histwrite_phy(o_sens_srf(nsrf), zx_tmp_fi2d) 161 zx_tmp_fi2d(1 : klon) = fluxlat( 1 : klon, nsrf)221 IF (itap > 0) zx_tmp_fi2d(1 : klon) = fluxlat( 1 : klon, nsrf) 162 222 CALL histwrite_phy(o_lat_srf(nsrf), zx_tmp_fi2d) 163 zx_tmp_fi2d(1 : klon) = fsollw( 1 : klon, nsrf)223 IF (itap > 0) zx_tmp_fi2d(1 : klon) = fsollw( 1 : klon, nsrf) 164 224 CALL histwrite_phy(o_flw_srf(nsrf), zx_tmp_fi2d) 165 zx_tmp_fi2d(1 : klon) = fsolsw( 1 : klon, nsrf)225 IF (itap > 0) zx_tmp_fi2d(1 : klon) = fsolsw( 1 : klon, nsrf) 166 226 CALL histwrite_phy(o_fsw_srf(nsrf), zx_tmp_fi2d) 167 zx_tmp_fi2d(1 : klon) = wfbils( 1 : klon, nsrf)227 IF (itap > 0) zx_tmp_fi2d(1 : klon) = wfbils( 1 : klon, nsrf) 168 228 CALL histwrite_phy(o_wbils_srf(nsrf), zx_tmp_fi2d) 169 zx_tmp_fi2d(1 : klon) = wfbilo( 1 : klon, nsrf)229 IF (itap > 0) zx_tmp_fi2d(1 : klon) = wfbilo( 1 : klon, nsrf) 170 230 CALL histwrite_phy(o_wbilo_srf(nsrf), zx_tmp_fi2d) 171 231 172 232 IF (iflag_pbl > 1) THEN 173 CALL histwrite_phy(o_tke_srf(nsrf), & 174 pbl_tke(:,1:klev,nsrf)) 175 176 177 CALL histwrite_phy(o_tke_max_srf(nsrf), & 178 pbl_tke(:,1:klev,nsrf)) 179 233 CALL histwrite_phy(o_tke_srf(nsrf), pbl_tke(:,1:klev,nsrf)) 234 CALL histwrite_phy(o_tke_max_srf(nsrf), pbl_tke(:,1:klev,nsrf)) 180 235 ENDIF 181 236 … … 188 243 CALL histwrite_phy(o_cldt, cldt) 189 244 CALL histwrite_phy(o_cldq, cldq) 190 zx_tmp_fi2d(1:klon) = flwp(1:klon)245 IF (itap > 0) zx_tmp_fi2d(1:klon) = flwp(1:klon) 191 246 CALL histwrite_phy(o_lwp, zx_tmp_fi2d) 192 zx_tmp_fi2d(1:klon) = fiwp(1:klon)247 IF (itap > 0) zx_tmp_fi2d(1:klon) = fiwp(1:klon) 193 248 CALL histwrite_phy(o_iwp, zx_tmp_fi2d) 194 249 CALL histwrite_phy(o_ue, ue) … … 213 268 CALL histwrite_phy(o_dnwd, dnwd) 214 269 CALL histwrite_phy(o_dnwd0, dnwd0) 215 zx_tmp_fi2d=float(itau_con)/float(itap)270 IF (itap > 0) zx_tmp_fi2d=float(itau_con)/float(itap) 216 271 CALL histwrite_phy(o_ftime_con, zx_tmp_fi2d) 217 if(iflag_thermals>=1)then 272 IF (itap > 0) THEN 273 IF(iflag_thermals>=1)THEN 218 274 zx_tmp_fi3d=dnwd+dnwd0+upwd+fm_therm(:,1:klev) 219 else275 ELSE 220 276 zx_tmp_fi3d=dnwd+dnwd0+upwd 221 endif 277 ENDIF 278 ENDIF 222 279 CALL histwrite_phy(o_mc, zx_tmp_fi3d) 223 280 ENDIF !iflag_con .GE. 3 … … 281 338 282 339 283 340 IF (itap > 0) THEN 284 341 DO i=1, klon 285 342 IF (pctsrf(i,is_oce).GT.epsfra.OR. & … … 292 349 ENDIF 293 350 ENDDO 351 ENDIF 294 352 CALL histwrite_phy(o_t_oce_sic, zx_tmp_fi2d) 295 353 … … 315 373 CALL histwrite_phy(o_wake_deltaq, wake_deltaq) 316 374 CALL histwrite_phy(o_wake_omg, wake_omg) 317 375 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_t_wake(1:klon,1:klev) & 318 376 /pdtphys 319 377 CALL histwrite_phy(o_dtwak, zx_tmp_fi3d) 320 378 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_q_wake(1:klon,1:klev)/pdtphys 321 379 CALL histwrite_phy(o_dqwak, zx_tmp_fi3d) 322 380 ENDIF ! iflag_wake>=1 … … 361 419 CALL histwrite_phy(o_re, re) 362 420 CALL histwrite_phy(o_fl, fl) 421 IF (itap > 0) THEN 363 422 DO i=1, klon 364 423 zx_tmp_fi2d(i)=MIN(100.,rh2m(i)*100.) 365 424 ENDDO 425 ENDIF 366 426 CALL histwrite_phy(o_rh2m, zx_tmp_fi2d) 367 427 428 IF (itap > 0) THEN 368 429 DO i=1, klon 369 430 zx_tmp_fi2d(i)=MIN(100.,rh2m(i)*100.) 370 431 ENDDO 432 ENDIF 371 433 CALL histwrite_phy(o_rh2m_min, zx_tmp_fi2d) 434 435 IF (itap > 0) THEN 372 436 DO i=1, klon 373 437 zx_tmp_fi2d(i)=MIN(100.,rh2m(i)*100.) 374 438 ENDDO 439 ENDIF 375 440 CALL histwrite_phy(o_rh2m_max, zx_tmp_fi2d) 376 441 … … 378 443 CALL histwrite_phy(o_tpot, tpot) 379 444 CALL histwrite_phy(o_tpote, tpote) 380 445 IF (itap > 0) zx_tmp_fi2d(1 : klon) = fsolsw( 1 : klon, is_ter) 381 446 CALL histwrite_phy(o_SWnetOR, zx_tmp_fi2d) 382 447 IF (itap > 0) zx_tmp_fi2d(1:klon) = solsw(1:klon)/(1.-albsol1(1:klon)) 383 448 CALL histwrite_phy(o_SWdownOR, zx_tmp_fi2d) 384 449 CALL histwrite_phy(o_LWdownOR, sollwdown) … … 413 478 CALL histwrite_phy(o_loaddust, loaddust) 414 479 !--STRAT AER 415 endif480 ENDIF 416 481 IF (ok_ade.OR.ok_aie.OR.flag_aerosol_strat) THEN 417 482 DO naero = 1, naero_spc … … 419 484 tausum_aero(:,2,naero) ) 420 485 END DO 421 endif486 ENDIF 422 487 ENDIF 423 488 IF (ok_ade) THEN … … 446 511 CALL histwrite_phy(o_swsrfcf_zero,solswcf_aero(:,3)) 447 512 endif 448 513 endif ! new_aod 449 514 !====MS forcing diagnostics 450 515 ENDIF … … 480 545 CALL histwrite_phy(o_pres, pplay) 481 546 CALL histwrite_phy(o_paprs, paprs(:,1:klev)) 547 IF (itap > 0) THEN 482 548 DO i=1, klon 483 549 zx_tmp_fi3d1(i,1)= pphis(i)/RG … … 492 558 ENDDO 493 559 ENDDO 560 ENDIF 494 561 CALL histwrite_phy(o_zfull,zx_tmp_fi3d1(:,2:klevp1)) 495 562 !020611 $o_zfull%name,itau_w,zx_tmp_fi3d) 563 564 IF (itap > 0) THEN 496 565 DO i=1, klon 497 566 zx_tmp_fi3d(i,1)= pphis(i)/RG - ( & … … 506 575 ENDDO 507 576 ENDDO 577 ENDIF 508 578 CALL histwrite_phy(o_zhalf, zx_tmp_fi3d) 509 579 CALL histwrite_phy(o_rneb, cldfra) … … 522 592 CALL histwrite_phy(o_dqphy, d_qx(:,:,ivap)) 523 593 DO nsrf=1, nbsrf 524 594 IF (itap > 0) zx_tmp_fi2d(1 : klon) = falb1( 1 : klon, nsrf) 525 595 CALL histwrite_phy(o_albe_srf(nsrf), zx_tmp_fi2d) 526 596 IF (itap > 0) zx_tmp_fi2d(1 : klon) = frugs( 1 : klon, nsrf) 527 597 CALL histwrite_phy(o_rugs_srf(nsrf), zx_tmp_fi2d) 528 598 IF (itap > 0) zx_tmp_fi2d(1 : klon) = agesno( 1 : klon, nsrf) 529 599 CALL histwrite_phy(o_ages_srf(nsrf), zx_tmp_fi2d) 530 600 ENDDO !nsrf=1, nbsrf … … 534 604 if (iflag_pbl>1) then 535 605 zx_tmp_fi3d=0. 606 IF (itap > 0) THEN 536 607 do nsrf=1,nbsrf 537 608 do k=1,klev … … 540 611 enddo 541 612 enddo 613 ENDIF 542 614 CALL histwrite_phy(o_tke, zx_tmp_fi3d) 543 615 … … 554 626 CALL histwrite_phy(o_dudyn, d_u_dyn) 555 627 CALL histwrite_phy(o_dvdyn, d_v_dyn) 628 629 IF (itap > 0) THEN 556 630 zx_tmp_fi3d(1:klon,1:klev)=d_t_con(1:klon,1:klev)/pdtphys 631 ENDIF 557 632 CALL histwrite_phy(o_dtcon, zx_tmp_fi3d) 558 633 if(iflag_thermals.eq.1)then 634 IF (itap > 0) THEN 559 635 zx_tmp_fi3d(1:klon,1:klev)=d_t_con(1:klon,1:klev)/pdtphys + & 560 636 d_t_ajsb(1:klon,1:klev)/pdtphys 637 ENDIF 561 638 CALL histwrite_phy(o_tntc, zx_tmp_fi3d) 562 639 else if(iflag_thermals.gt.1.and.iflag_wake.EQ.1)then 640 IF (itap > 0) THEN 563 641 zx_tmp_fi3d(1:klon,1:klev)=d_t_con(1:klon,1:klev)/pdtphys + & 564 642 d_t_ajs(1:klon,1:klev)/pdtphys + & 565 643 d_t_wake(1:klon,1:klev)/pdtphys 644 ENDIF 566 645 CALL histwrite_phy(o_tntc, zx_tmp_fi3d) 567 646 endif 568 647 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_u_con(1:klon,1:klev)/pdtphys 569 648 CALL histwrite_phy(o_ducon, zx_tmp_fi3d) 570 649 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_v_con(1:klon,1:klev)/pdtphys 571 650 CALL histwrite_phy(o_dvcon, zx_tmp_fi3d) 572 651 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_q_con(1:klon,1:klev)/pdtphys 573 652 CALL histwrite_phy(o_dqcon, zx_tmp_fi3d) 574 653 575 654 IF(iflag_thermals.EQ.1) THEN 576 655 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_q_con(1:klon,1:klev)/pdtphys 577 656 CALL histwrite_phy(o_tnhusc, zx_tmp_fi3d) 578 657 ELSE IF(iflag_thermals.GT.1.AND.iflag_wake.EQ.1) THEN 658 IF (itap > 0) THEN 579 659 zx_tmp_fi3d(1:klon,1:klev)=d_q_con(1:klon,1:klev)/pdtphys + & 580 660 d_q_ajs(1:klon,1:klev)/pdtphys + & 581 661 d_q_wake(1:klon,1:klev)/pdtphys 662 ENDIF 582 663 CALL histwrite_phy(o_tnhusc, zx_tmp_fi3d) 583 664 ENDIF 584 665 585 666 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_t_lsc(1:klon,1:klev)/pdtphys 586 667 CALL histwrite_phy(o_dtlsc, zx_tmp_fi3d) 587 668 IF (itap > 0) zx_tmp_fi3d(1:klon, 1:klev)=(d_t_lsc(1:klon,1:klev)+ & 588 669 d_t_eva(1:klon,1:klev))/pdtphys 589 670 CALL histwrite_phy(o_dtlschr, zx_tmp_fi3d) 590 671 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_q_lsc(1:klon,1:klev)/pdtphys 591 672 CALL histwrite_phy(o_dqlsc, zx_tmp_fi3d) 592 673 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=beta_prec(1:klon,1:klev) 593 674 CALL histwrite_phy(o_beta_prec, zx_tmp_fi3d) 594 675 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 595 676 ! Sorties specifiques a la separation thermiques/non thermiques 596 677 if (iflag_thermals>=1) then 597 678 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_t_lscth(1:klon,1:klev)/pdtphys 598 679 CALL histwrite_phy(o_dtlscth, zx_tmp_fi3d) 599 680 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_t_lscst(1:klon,1:klev)/pdtphys 600 681 CALL histwrite_phy(o_dtlscst, zx_tmp_fi3d) 601 682 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_q_lscth(1:klon,1:klev)/pdtphys 602 683 CALL histwrite_phy(o_dqlscth, zx_tmp_fi3d) 603 684 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_q_lscst(1:klon,1:klev)/pdtphys 604 685 CALL histwrite_phy(o_dqlscst, zx_tmp_fi3d) 605 686 CALL histwrite_phy(o_plulth, plul_th) 606 687 CALL histwrite_phy(o_plulst, plul_st) 688 IF (itap > 0) THEN 607 689 do k=1,klev 608 690 do i=1,klon … … 614 696 enddo 615 697 enddo 698 ENDIF 616 699 CALL histwrite_phy(o_ptconvth, zx_tmp_fi3d) 700 IF (itap > 0) THEN 617 701 do i=1,klon 618 702 zx_tmp_fi2d(1:klon)=lmax_th(:) 619 703 enddo 704 ENDIF 620 705 CALL histwrite_phy(o_lmaxth, zx_tmp_fi2d) 621 706 endif ! iflag_thermals>=1 622 707 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 623 708 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_t_vdf(1:klon,1:klev)/pdtphys 624 709 CALL histwrite_phy(o_dtvdf, zx_tmp_fi3d) 625 710 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_t_diss(1:klon,1:klev)/pdtphys 626 711 CALL histwrite_phy(o_dtdis, zx_tmp_fi3d) 627 712 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_q_vdf(1:klon,1:klev)/pdtphys 628 713 CALL histwrite_phy(o_dqvdf, zx_tmp_fi3d) 629 714 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_t_eva(1:klon,1:klev)/pdtphys 630 715 CALL histwrite_phy(o_dteva, zx_tmp_fi3d) 631 716 IF (itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_q_eva(1:klon,1:klev)/pdtphys 632 717 CALL histwrite_phy(o_dqeva, zx_tmp_fi3d) 633 718 zpt_conv = 0. 634 where(ptconv) zpt_conv = 1.719 WHERE (ptconv) zpt_conv = 1. 635 720 CALL histwrite_phy(o_ptconv, zpt_conv) 636 721 CALL histwrite_phy(o_ratqs, ratqs) 722 IF (itap > 0) THEN 637 723 zx_tmp_fi3d(1:klon,1:klev)=d_t_ajs(1:klon,1:klev)/pdtphys - & 638 724 d_t_ajsb(1:klon,1:klev)/pdtphys 725 ENDIF 639 726 CALL histwrite_phy(o_dtthe, zx_tmp_fi3d) 640 727 IF (iflag_thermals>=1) THEN … … 650 737 CALL histwrite_phy(o_f0_th, f0) 651 738 CALL histwrite_phy(o_zmax_th, zmax_th) 739 IF (itap > 0) THEN 652 740 zx_tmp_fi3d(1:klon,1:klev)=d_q_ajs(1:klon,1:klev)/pdtphys - & 653 741 d_q_ajsb(1:klon,1:klev)/pdtphys 742 ENDIF 654 743 CALL histwrite_phy(o_dqthe, zx_tmp_fi3d) 655 744 ENDIF !iflag_thermals 656 745 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_t_ajsb(1:klon,1:klev)/pdtphys 657 746 CALL histwrite_phy(o_dtajs, zx_tmp_fi3d) 658 747 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_q_ajsb(1:klon,1:klev)/pdtphys 659 748 CALL histwrite_phy(o_dqajs, zx_tmp_fi3d) 660 749 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=heat(1:klon,1:klev)/RDAY 661 750 CALL histwrite_phy(o_dtswr, zx_tmp_fi3d) 662 751 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=heat0(1:klon,1:klev)/RDAY 663 752 CALL histwrite_phy(o_dtsw0, zx_tmp_fi3d) 664 753 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=-1.*cool(1:klon,1:klev)/RDAY 665 754 CALL histwrite_phy(o_dtlwr, zx_tmp_fi3d) 666 755 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=-1.*cool0(1:klon,1:klev)/RDAY 667 756 CALL histwrite_phy(o_dtlw0, zx_tmp_fi3d) 668 757 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_t_ec(1:klon,1:klev)/pdtphys 669 758 CALL histwrite_phy(o_dtec, zx_tmp_fi3d) 670 759 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_u_vdf(1:klon,1:klev)/pdtphys 671 760 CALL histwrite_phy(o_duvdf, zx_tmp_fi3d) 672 761 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_v_vdf(1:klon,1:klev)/pdtphys 673 762 CALL histwrite_phy(o_dvvdf, zx_tmp_fi3d) 674 763 IF (ok_orodr) THEN 675 764 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_u_oro(1:klon,1:klev)/pdtphys 676 765 CALL histwrite_phy(o_duoro, zx_tmp_fi3d) 677 766 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_v_oro(1:klon,1:klev)/pdtphys 678 767 CALL histwrite_phy(o_dvoro, zx_tmp_fi3d) 679 768 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_t_oro(1:klon,1:klev)/pdtphys 680 769 CALL histwrite_phy(o_dtoro, zx_tmp_fi3d) 681 770 ENDIF 682 771 IF (ok_orolf) THEN 683 772 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_u_lif(1:klon,1:klev)/pdtphys 684 773 CALL histwrite_phy(o_dulif, zx_tmp_fi3d) 685 774 ENDIF 686 775 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_v_lif(1:klon,1:klev)/pdtphys 687 776 CALL histwrite_phy(o_dvlif, zx_tmp_fi3d) 688 777 689 778 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_t_lif(1:klon,1:klev)/pdtphys 690 779 CALL histwrite_phy(o_dtlif, zx_tmp_fi3d) 691 780 692 781 IF (ok_hines) THEN 693 782 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_u_hin(1:klon,1:klev)/pdtphys 694 783 CALL histwrite_phy(o_duhin, zx_tmp_fi3d) 695 784 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_v_hin(1:klon,1:klev)/pdtphys 696 785 CALL histwrite_phy(o_dvhin, zx_tmp_fi3d) 697 786 IF(itap > 0) zx_tmp_fi3d(1:klon,1:klev)=d_t_hin(1:klon,1:klev)/pdtphys 698 787 CALL histwrite_phy(o_dthin, zx_tmp_fi3d) 699 788 ENDIF … … 706 795 CALL histwrite_phy(o_rlucs, lwup0) 707 796 CALL histwrite_phy(o_rldcs, lwdn0) 797 IF(itap > 0) THEN 708 798 zx_tmp_fi3d(1:klon,1:klev)=d_t(1:klon,1:klev)+ & 709 799 d_t_dyn(1:klon,1:klev) 800 ENDIF 710 801 CALL histwrite_phy(o_tnt, zx_tmp_fi3d) 802 IF(itap > 0) THEN 711 803 zx_tmp_fi3d(1:klon,1:klev)=heat(1:klon,1:klev)/RDAY - & 712 804 cool(1:klon,1:klev)/RDAY 805 ENDIF 713 806 CALL histwrite_phy(o_tntr, zx_tmp_fi3d) 807 IF(itap > 0) THEN 714 808 zx_tmp_fi3d(1:klon,1:klev)= (d_t_lsc(1:klon,1:klev)+ & 715 809 d_t_eva(1:klon,1:klev)+ & 716 810 d_t_vdf(1:klon,1:klev))/pdtphys 811 ENDIF 717 812 CALL histwrite_phy(o_tntscpbl, zx_tmp_fi3d) 813 IF(itap > 0) THEN 718 814 zx_tmp_fi3d(1:klon,1:klev)=d_qx(1:klon,1:klev,ivap)+ & 719 815 d_q_dyn(1:klon,1:klev) 816 ENDIF 720 817 CALL histwrite_phy(o_tnhus, zx_tmp_fi3d) 818 IF(itap > 0) THEN 721 819 zx_tmp_fi3d(1:klon,1:klev)=d_q_lsc(1:klon,1:klev)/pdtphys+ & 722 820 d_q_eva(1:klon,1:klev)/pdtphys 821 ENDIF 723 822 CALL histwrite_phy(o_tnhusscpbl, zx_tmp_fi3d) 724 823 CALL histwrite_phy(o_evu, coefm(:,:,is_ave)) 824 IF(itap > 0) THEN 725 825 zx_tmp_fi3d(1:klon,1:klev)=q_seri(1:klon,1:klev)+ & 726 826 ql_seri(1:klon,1:klev) 827 ENDIF 727 828 CALL histwrite_phy(o_h2o, zx_tmp_fi3d) 728 829 if (iflag_con >= 3) then 830 IF(itap > 0) THEN 729 831 zx_tmp_fi3d(1:klon,1:klev)=-1 * (dnwd(1:klon,1:klev)+ & 730 832 dnwd0(1:klon,1:klev)) 833 ENDIF 731 834 CALL histwrite_phy(o_mcd, zx_tmp_fi3d) 835 IF(itap > 0) THEN 732 836 zx_tmp_fi3d(1:klon,1:klev)=upwd(1:klon,1:klev) + & 733 837 dnwd(1:klon,1:klev)+ dnwd0(1:klon,1:klev) 838 ENDIF 734 839 CALL histwrite_phy(o_dmc, zx_tmp_fi3d) 735 840 else if (iflag_con == 2) then … … 742 847 RN2O_per.NE.RN2O_act.OR.RCFC11_per.NE.RCFC11_act.OR. & 743 848 RCFC12_per.NE.RCFC12_act) THEN 744 849 IF(itap > 0) zx_tmp_fi2d(1 : klon) = swupp ( 1 : klon, klevp1 ) 745 850 CALL histwrite_phy(o_rsut4co2, zx_tmp_fi2d) 746 851 IF(itap > 0) zx_tmp_fi2d(1 : klon) = lwupp ( 1 : klon, klevp1 ) 747 852 CALL histwrite_phy(o_rlut4co2, zx_tmp_fi2d) 748 853 IF(itap > 0) zx_tmp_fi2d(1 : klon) = swup0p ( 1 : klon, klevp1 ) 749 854 CALL histwrite_phy(o_rsutcs4co2, zx_tmp_fi2d) 750 855 IF(itap > 0) zx_tmp_fi2d(1 : klon) = lwup0p ( 1 : klon, klevp1 ) 751 856 CALL histwrite_phy(o_rlutcs4co2, zx_tmp_fi2d) 752 857 CALL histwrite_phy(o_rsu4co2, swupp) … … 765 870 DO iq=3,nqtot 766 871 zx_tmp_fi2d=0. 872 IF(itap > 0) THEN 767 873 DO k=1,klev 768 874 zx_tmp_fi2d(:)=zx_tmp_fi2d(:)+zmasse(:,k)*qx(:,k,iq) 769 875 ENDDO 876 ENDIF 770 877 CALL histwrite_phy(o_trac_cum(iq-2), zx_tmp_fi2d) 771 878 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.