Changeset 3134
- Timestamp:
- Nov 21, 2023, 2:10:48 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/vdifc_mod.F
r3124 r3134 296 296 zq1temp_regolith(1:ngrid)=0 297 297 zdqsdif_tot(1:ngrid)=0 298 !h2o_ice_depth(1:ngrid,1:nslope)=1298 h2o_ice_depth(1:ngrid,1:nslope)=1 299 299 c ** calcul de rho*dz et dt*rho/dz=dt*rho**2 g/dp 300 300 c avec rho=p/RT=p/ (R Theta) (p/ps)**kappa … … 963 963 saved_h2o_vap(:)= zq(:,1,igcm_h2o_vap) 964 964 DO ig=1,ngrid 965 !nsubtimestep(ig)=1for debug965 ! nsubtimestep(ig)=1 !for debug 966 966 subtimestep = ptimestep/nsubtimestep(ig) 967 call write_output('subtimestep', 968 & 'vdifc substimestep length','s',subtimestep) 967 969 ztsrf(ig)=ptsrf(ig,islope) ! +pdtsrf(ig)*subtimestep 968 970 zq_tmp_vap(ig,:,:) =zq(ig,:,:) … … 970 972 DO tsub=1,nsubtimestep(ig) 971 973 if(tsub.eq.nsubtimestep(ig)) writeoutput = .true. 974 972 975 c C'est parti ! 973 976 zb(1:ngrid,2:nlay)=zkh(1:ngrid,2:nlay)*zb0(1:ngrid,2:nlay) … … 1009 1012 endif 1010 1013 1011 1014 !zdqsdif_tot(ig) = zdqsdif_surf(ig) 1012 1015 !!! Subsurface exchange 1013 1016 ! Check for subsurface exchanges … … 1229 1232 !needs to change to the mean of eq 1230 1233 ENDIF 1231 call write_output('subtimestep',1232 & 'vdifc substimestep length','s',subtimestep)1234 ! call write_output('subtimestep', 1235 ! & 'vdifc substimestep length','s',subtimestep) 1233 1236 ! ENDDO !subsurface ice subslope 1234 1237 … … 1255 1258 zqsurf(ig)= zqsurf(ig)+( 1256 1259 & zdqsdif_tot(ig))*subtimestep 1260 if (zqsurf(ig)<0 .and. 1261 & (.not.watercaptag(ig))) then 1262 zqsurf(ig)=0 1263 endif 1264 1257 1265 c Monitoring instantaneous latent heat flux in W.m-2 : 1258 1266 zsurf_h2o_lh(ig,islope) = zsurf_h2o_lh(ig,islope)+ … … 1405 1413 & 'Flux between frost and subsurface','kg.m-2.s-1', 1406 1414 & zdqsdif_ssi_frost(:,1)) 1407 call write_output('subtimestep',1408 & 'vdifc substimestep length','s',subtimestep)1409 1415 1410 1416 call write_output('zdq_subtimestep', 1411 1417 & 'Actual flux zdqsdif_surf*subtimestep', 1412 & 'kg.m-2',zdqsdif_ surf(:)*subtimestep)1413 call write_output('zdq_end',1414 & 'Flux after all contributions',1415 & 'kg.m-2.s-1',zdqsdif_surf(:))1418 & 'kg.m-2',zdqsdif_tot(:)*subtimestep) 1419 ! call write_output('zdq_end', 1420 ! & 'Flux after all contributions', 1421 ! & 'kg.m-2.s-1',zdqsdif_tot(:)) 1416 1422 C Diagnostic output for HDO 1417 1423 ! if (hdo) then
Note: See TracChangeset
for help on using the changeset viewer.