Changeset 2312 for trunk/LMDZ.MARS/libf/phymars/watercloud_mod.F
- Timestamp:
- May 6, 2020, 4:46:33 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/watercloud_mod.F
r2311 r2312 19 19 USE watersat_mod, ONLY: watersat 20 20 use tracer_mod, only: nqmx, igcm_h2o_vap, igcm_h2o_ice, 21 & igcm_hdo_vap, igcm_hdo_ice, 21 22 & igcm_dust_mass, igcm_dust_number, 22 23 & igcm_ccn_mass, igcm_ccn_number, … … 124 125 REAL :: mincloud ! min cloud frac 125 126 LOGICAL, save :: flagcloud=.true. 127 126 128 c ** un petit test de coherence 127 129 c -------------------------- … … 312 314 & sum_subpdq(ig,l,igcm_h2o_vap) 313 315 & + pdq(ig,l,igcm_h2o_vap) 316 IF (hdo) THEN 317 sum_subpdq(ig,l,igcm_hdo_ice) = 318 & sum_subpdq(ig,l,igcm_hdo_ice) 319 & + pdq(ig,l,igcm_hdo_ice) 320 sum_subpdq(ig,l,igcm_hdo_vap) = 321 & sum_subpdq(ig,l,igcm_hdo_vap) 322 & + pdq(ig,l,igcm_hdo_vap) 323 ENDIF !hdo 314 324 ENDDO 315 325 ENDDO … … 361 371 & sum_subpdq(ig,l,igcm_h2o_vap) 362 372 & + subpdqcloud(ig,l,igcm_h2o_vap) 373 374 IF (hdo) THEN 375 sum_subpdq(ig,l,igcm_hdo_ice) = 376 & sum_subpdq(ig,l,igcm_hdo_ice) 377 & + subpdqcloud(ig,l,igcm_hdo_ice) 378 sum_subpdq(ig,l,igcm_hdo_vap) = 379 & sum_subpdq(ig,l,igcm_hdo_vap) 380 & + subpdqcloud(ig,l,igcm_hdo_vap) 381 ENDIF ! hdo 382 363 383 ENDDO 364 384 ENDDO … … 397 417 & sum_subpdq(ig,l,igcm_h2o_vap)/real(imicro) 398 418 & - pdq(ig,l,igcm_h2o_vap) 419 IF (hdo) THEN 420 pdqcloud(ig,l,igcm_hdo_ice) = 421 & sum_subpdq(ig,l,igcm_hdo_ice)/real(imicro) 422 & - pdq(ig,l,igcm_hdo_ice) 423 pdqcloud(ig,l,igcm_hdo_vap) = 424 & sum_subpdq(ig,l,igcm_hdo_vap)/real(imicro) 425 & - pdq(ig,l,igcm_hdo_vap) 426 ENDIF !hdo 399 427 ENDDO 400 428 ENDDO … … 478 506 DO l=1,nlay 479 507 DO ig=1,ngrid 508 480 509 IF (pq(ig,l,igcm_h2o_ice) + ptimestep* 481 510 & (pdq(ig,l,igcm_h2o_ice) + pdqcloud(ig,l,igcm_h2o_ice)) … … 484 513 & - pq(ig,l,igcm_h2o_ice)/ptimestep - pdq(ig,l,igcm_h2o_ice) 485 514 pdqcloud(ig,l,igcm_h2o_vap) = -pdqcloud(ig,l,igcm_h2o_ice) 515 if (hdo) then 516 pdqcloud(ig,l,igcm_hdo_ice) = 517 & - pq(ig,l,igcm_hdo_ice)/ptimestep - pdq(ig,l,igcm_hdo_ice) 518 pdqcloud(ig,l,igcm_hdo_vap) = -pdqcloud(ig,l,igcm_hdo_ice) 519 endif 486 520 ENDIF 487 521 IF (pq(ig,l,igcm_h2o_vap) + ptimestep* … … 491 525 & - pq(ig,l,igcm_h2o_vap)/ptimestep - pdq(ig,l,igcm_h2o_vap) 492 526 pdqcloud(ig,l,igcm_h2o_ice) = -pdqcloud(ig,l,igcm_h2o_vap) 527 if (hdo) then 528 pdqcloud(ig,l,igcm_hdo_vap) = 529 & - pq(ig,l,igcm_hdo_vap)/ptimestep - pdq(ig,l,igcm_hdo_vap) 530 pdqcloud(ig,l,igcm_hdo_ice) = -pdqcloud(ig,l,igcm_hdo_vap) 531 endif 493 532 ENDIF 494 ENDDO 495 ENDDO496 533 534 ENDDO 535 ENDDO 497 536 498 537 c------Update the ice and dust particle size "rice" for output or photochemistry … … 627 666 & ,"kg/kg.s-1",3,pdqcloud(1:ngrid,1:nlay, 628 667 & igcm_h2o_vap)) 668 if (hdo) then 669 call WRITEDIAGFI(ngrid,"pdqiceD","pdqiceD apres microphysique" 670 & ,"kg/kg.s-1",3,pdqcloud(1:ngrid,1:nlay,igcm_hdo_ice)) 671 call WRITEDIAGFI(ngrid,"pdqvapD","pdqvapD apres microphysique" 672 & ,"kg/kg.s-1",3,pdqcloud(1:ngrid,1:nlay, 673 & igcm_hdo_vap)) 674 endif 629 675 call WRITEDIAGFI(ngrid,"pdqccn2","pdqcloudccn apres microphysique" 630 676 & ,"kg/kg.s-1",3,pdqcloud(1:ngrid,1:nlay,
Note: See TracChangeset
for help on using the changeset viewer.