Changeset 2316 for trunk/LMDZ.MARS/libf/phymars/vdifc_mod.F
- Timestamp:
- May 12, 2020, 11:51:22 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/vdifc_mod.F
r2312 r2316 835 835 CALL hdo_surfex(ngrid,nlay,nq,ptimestep, 836 836 & zt,zq,pqsurf, 837 & old_h2o_vap,pdqsdif, h2oflux,837 & old_h2o_vap,pdqsdif,dwatercap_dif, 838 838 & hdoflux) 839 839 DO ig=1,ngrid … … 879 879 if(watercaptag(ig)) then 880 880 c dwatercap_dif same sign as pdqsdif (pos. toward ground) 881 dwatercap_dif(ig) = -pdqsdif(ig,igcm_h2o_ice)882 & -pqsurf(ig,igcm_h2o_ice)/ptimestep881 dwatercap_dif(ig) = pdqsdif(ig,igcm_h2o_ice) 882 & + pqsurf(ig,igcm_h2o_ice)/ptimestep 883 883 pdqsdif(ig,igcm_h2o_ice)= 884 884 & -pqsurf(ig,igcm_h2o_ice)/ptimestep … … 892 892 endif 893 893 894 endif895 894 c write(*,*)'flux vers le sol=',pdqsdif(ig,nq) 896 895 z1(ig)=1./(za(ig,1)+ zb(ig,2)*(1.-zd(ig,2))) 897 896 zc(ig,1)=(za(ig,1)*zq(ig,1,igcm_h2o_vap)+ 898 $ zb(ig,2)*zc(ig,2) + (dwatercap_dif(ig)- 899 c $ zb(ig,2)*zc(ig,2) + (- 900 $ pdqsdif(ig,igcm_h2o_ice)) *ptimestep) *z1(ig) 897 $ zb(ig,2)*zc(ig,2) + 898 $ (-pdqsdif(ig,igcm_h2o_ice)) *ptimestep) *z1(ig) 901 899 zq1temp(ig)=zc(ig,1) 902 endif ! if (.not.watercaptag(ig)) 900 endif !if .not.watercaptag(ig) 901 endif ! if sublim more than surface 902 903 903 c Starting upward calculations for water : 904 904 zq(ig,1,igcm_h2o_vap)=zq1temp(ig) … … 925 925 926 926 if(pqsurf(ig,igcm_h2o_ice) 927 & + (dwatercap_dif(ig)+pdqsdif(ig,igcm_h2o_ice))*ptimestep927 & +pdqsdif(ig,igcm_h2o_ice)*ptimestep 928 928 & .gt.frost_albedo_threshold) ! if there is still ice, T cannot exceed To 929 929 & pdtsrf(ig) = min(pdtsrf(ig),(To-ptsrf(ig))/ptimestep) ! ice melt case
Note: See TracChangeset
for help on using the changeset viewer.