Changeset 2903
- Timestamp:
- Feb 22, 2023, 7:08:12 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/co2condens_mod.F
r2902 r2903 170 170 REAL masseq(nlayer),wq(nlayer+1) 171 171 INTEGER ifils,iq2 172 c LL: flux dependant albedo173 real :: totflux(ngrid)174 172 c---------------------------------------------------------------------- 175 173 … … 177 175 c -------------- 178 176 c 179 totflux(:) = fluxsurf_sw(:,1)+fluxsurf_sw(:,2)180 177 ! AS: firstcall OK absolute 181 178 IF (firstcall) THEN … … 502 499 ! ---------------------------------------- 503 500 CALL albedocaps(zls,ngrid,piceco2,psolaralb,emisref) 504 DO ig = 1,ngrid505 if(piceco2(ig).gt.0.) then506 psolaralb(ig,1) = 0.267+0.00059*totflux(ig)507 psolaralb(ig,2) = psolaralb(ig,1)508 if(ig.eq.ngrid) then509 psolaralb(ig,1) = 0.532+8.72e-4*totflux(ig)510 psolaralb(ig,2) = psolaralb(ig,1)511 endif512 endif513 ENDDO514 515 516 501 517 502 ! set pemisurf() to emissiv when there is bare surface (needed for co2snow) … … 577 562 c Value transfert at the surface interface when condensation 578 563 c sublimation: 579 ztm(1) = zt srf(ig) + pdtsrfc(ig)*ptimestep564 ztm(1) = ztcondsol(ig) 580 565 zum(1) = 0 581 566 zvm(1) = 0 … … 751 736 ! NB: Updated surface pressure, at grid point 'ngrid', is 752 737 ! ps(ngrid)=pplev(ngrid,1)+pdpsrf(ngrid)*ptimestep 753 !write(*,*) "co2condens: South pole: latitude(ngrid)=",754 !& latitude(ngrid)755 !ztcondsol(ngrid)=756 !& 1./(bcond-acond*log(.01*vmr_co2(ngrid,1)*757 !& (pplev(ngrid,1)+pdpsrf(ngrid)*ptimestep)))758 !pdtsrfc(ngrid)=(ztcondsol(ngrid)-ztsrf(ngrid))/ptimestep738 write(*,*) "co2condens: South pole: latitude(ngrid)=", 739 & latitude(ngrid) 740 ztcondsol(ngrid)= 741 & 1./(bcond-acond*log(.01*vmr_co2(ngrid,1)* 742 & (pplev(ngrid,1)+pdpsrf(ngrid)*ptimestep))) 743 pdtsrfc(ngrid)=(ztcondsol(ngrid)-ztsrf(ngrid))/ptimestep 759 744 endif 760 745 endif
Note: See TracChangeset
for help on using the changeset viewer.