Changeset 3285
- Timestamp:
- Mar 28, 2024, 9:54:07 AM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/vdifc_mod.F
r3273 r3285 247 247 REAL zdqsdif_ssi_tot(ngrid,nslope) ! Total flux of the interactions with SSI kg/m^2/s^-1) 248 248 249 REAL :: tol_frost = 1e-4! tolerence for frost thicnkess (kg/m^2) to avoid numerical noise effect249 REAL :: tol_frost = 2e-3 ! tolerence for frost thicnkess (kg/m^2) to avoid numerical noise effect 250 250 c ** un petit test de coherence 251 251 c -------------------------- … … 1120 1120 1121 1121 zdqsdif_tot(ig)=-zqsurf(ig)/subtimestep 1122 ! zqsurf(ig) = 01123 1122 if((h2o_ice_depth(ig,islope).gt.0) 1124 1123 & .and.lag_layer) then 1125 1124 ! Atm <-> subsurface exchange, we need to update the exchange coefficient zb by a factor 1/1+R; R = zice*Cd,h*/D and add the flux from the subsurface 1126 1125 zqsurf(ig) = 0 1127 1126 if(old_wsublimation_scheme) then 1128 1127 resist(ig,islope)=h2o_ice_depth(ig,islope) … … 1146 1145 qsat_ssi(ig,islope)=ztsrf(ig)/Tice(ig,islope) 1147 1146 & *qsat_ssi(ig,islope) 1148 ! Flux from the subsurface 1149 if(old_wsublimation_scheme) then 1150 zdqsdif_ssi_atm(ig,islope)=rho(ig) 1151 & *dryness(ig)*zcdv(ig,islope) 1152 & *1/(1+resist(ig,islope)) 1153 & *(zq1temp(ig)-qsat_ssi(ig,islope)) 1154 else 1155 zdqsdif_ssi_atm(ig,islope)=rho(ig)* 1156 & *dryness(ig) *zcdh(ig,islope) 1157 & *1/(1+resist(ig,islope)) 1158 & *(zq1temp(ig)-qsat_ssi(ig,islope)) 1159 endif 1147 1160 1148 ! And now we solve correctly the system 1161 1149 z1(ig)=1./(za(ig,1)+zb(ig,1)+ … … 1267 1255 zdqsdif_ssi_atm_tot(ig,islope) = 1268 1256 & zdqsdif_ssi_atm_tot(ig,islope) 1269 & + zdqsdif_ssi_atm(ig,islope)1257 & + zdqsdif_ssi_atm(ig,islope)*subtimestep 1270 1258 zdqsdif_ssi_frost_tot(ig,islope) = 1271 1259 & zdqsdif_ssi_frost_tot(ig,islope) 1272 & + zdqsdif_ssi_frost(ig,islope)1260 & +zdqsdif_ssi_frost(ig,islope)*subtimestep 1273 1261 c Monitoring instantaneous latent heat flux in W.m-2 : 1274 1262 zsurf_h2o_lh(ig,islope) = zsurf_h2o_lh(ig,islope)+ … … 1299 1287 & /ptimestep 1300 1288 1301 zdqsdif_ssi_tot(ig,islope) = 1289 zdqsdif_ssi_atm_tot(ig,islope)= 1290 & zdqsdif_ssi_atm_tot(ig,islope)/ptimestep 1291 zdqsdif_ssi_frost_tot(ig,islope)= 1292 & zdqsdif_ssi_frost_tot(ig,islope)/ptimestep 1293 zdqsdif_ssi_tot(ig,islope) = 1302 1294 & zdqsdif_ssi_atm_tot(ig,islope) 1303 1295 & + zdqsdif_ssi_frost_tot(ig,islope)
Note: See TracChangeset
for help on using the changeset viewer.