Changeset 1484 for trunk/LMDZ.GENERIC/libf/phystd/condense_co2.F90
- Timestamp:
- Oct 15, 2015, 2:35:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/condense_co2.F90
r1482 r1484 2 2 pcapcal,pplay,pplev,ptsrf,pt, & 3 3 pphi,pdt,pdu,pdv,pdtsrf,pu,pv,pq,pdq, & 4 piceco2, albedo,pemisurf,&4 piceco2,pdqsurfc,albedo,pemisurf, & 5 5 albedo_bareground,albedo_co2_ice_SPECTV, & 6 6 pdtc,pdtsrfc,pdpsrf,pduc,pdvc, & … … 89 89 REAL,INTENT(OUT) :: pdvc(ngrid,nlayer) 90 90 REAL,INTENT(OUT) :: pdqc(ngrid,nlayer,nq) 91 REAL,INTENT(OUT) :: pdqsurfc(ngrid) 91 92 92 93 !----------------------------------------------------------------------- … … 102 103 REAL ztnuc (ngrid,nlayer) 103 104 REAL ztcondsol(ngrid) 104 REAL zdiceco2(ngrid)105 105 REAL zcondicea(ngrid,nlayer), zcondices(ngrid) 106 106 REAL zfallice(ngrid), Mfallice(ngrid) … … 225 225 pdpsrf(ig) = 0. 226 226 condsub(ig) = .false. 227 zdiceco2(ig) = 0.227 pdqsurfc(ig) = 0. 228 228 ENDDO 229 229 … … 435 435 ! Changing CO2 ice amount and pressure 436 436 437 zdiceco2(ig) = zcondices(ig) + zfallice(ig)438 piceco2(ig) = piceco2(ig) + zdiceco2(ig)*ptimestep439 pdpsrf(ig) = - zdiceco2(ig)*g437 pdqsurfc(ig) = zcondices(ig) + zfallice(ig) 438 piceco2(ig) = piceco2(ig) + pdqsurfc(ig)*ptimestep 439 pdpsrf(ig) = -pdqsurfc(ig)*g 440 440 441 441 IF(ABS(pdpsrf(ig)*ptimestep).GT.pplev(ig,1)) THEN … … 461 461 if(.not.piceco2(ig).ge.0.) THEN 462 462 if(piceco2(ig).le.-1.e-8) print*, & 463 'WARNINGin condense_co2cloud: piceco2(',ig,')=', piceco2(ig)463 'WARNING : in condense_co2cloud: piceco2(',ig,')=', piceco2(ig) 464 464 piceco2(ig)=0. 465 465 endif 466 if (piceco2(ig) .gt. 1.) then ! CO2 Albedo condition changed to 1 mm coverage. Change by MT2015.466 if (piceco2(ig) .gt. 1.) then ! CO2 Albedo condition changed to ~1 mm coverage. Change by MT2015. 467 467 DO nw=1,L_NSPECTV 468 468 albedo(ig,nw) = albedo_co2_ice_SPECTV(nw) … … 476 476 pemisurf(ig) = emissiv 477 477 end if 478 479 piceco2(ig) = piceco2(ig) - pdqsurfc(ig)*ptimestep ! This line was added so that tendencies are added outside the routine. MT2015. 480 if(.not.piceco2(ig).ge.0.) THEN 481 if(piceco2(ig).le.-1.e-8) print*, & 482 'WARNING 2 : in condense_co2cloud: piceco2(',ig,')=', piceco2(ig) 483 piceco2(ig)=0. 484 endif 485 478 486 end do 479 487
Note: See TracChangeset
for help on using the changeset viewer.