- Timestamp:
- Nov 17, 2023, 1:15:00 PM (12 months ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/changelog.txt
r3127 r3128 4345 4345 - Initialization of zdq at first sub time step (spenttime=0) 4346 4346 - Move 'coef' to fix the formula for zimicro 4347 4348 == 17/11/2023 == JBC 4349 Correction of a bug related to r3126: 'choice_ads' did not have a default value which made the model crash. 'choice_ads = 0' is the default value (no adsorption). -
trunk/LMDZ.MARS/libf/phymars/conf_phys.F
r3126 r3128 1010 1010 1011 1011 ! Adsorption 1012 adsorption_soil = .false. 1012 adsorption_soil = .false. ! default value 1013 1013 call getin_p("adsorption_soil",adsorption_soil) 1014 1014 if (adsorption_soil .and. (.not. water)) then … … 1018 1018 endif 1019 1019 1020 if(adsorption_soil) choice_ads = 1 1020 choice_ads = 0 ! default value (no adsorption) 1021 if (adsorption_soil) choice_ads = 1 1021 1022 call getin_p("choice_ads",choice_ads) 1022 1023 -
trunk/LMDZ.MARS/libf/phymars/soilwater.F90
r3126 r3128 1 2 1 subroutine soilwater(ngrid, nlayer, nq, nsoil, nqsoil, ptsrf,tsoil, ptimestep, & 3 2 exchange, qsat_surf, pq, pa, pb, pc, pd, pdqsdifpot, pqsurf, & … … 375 374 endif 376 375 377 if(choice_ads .ne. 3) adswater(ig, ik) = min(Ka(ig, ik) / Kd(ig, ik) * znsoil(ig, ik), adswater_sat)376 if(choice_ads .ne. 0) adswater(ig, ik) = min(Ka(ig, ik) / Kd(ig, ik) * znsoil(ig, ik), adswater_sat) 378 377 379 378 else ! in 3D simulations initialisation happens with newstart.F … … 383 382 endif 384 383 385 if (choice_ads.eq. 3) then ! no adsorption384 if (choice_ads.eq.0) then ! no adsorption 386 385 387 386 Ka(:, :) = 0. … … 601 600 ! calculate the amount of water vapor at adorption saturation 602 601 603 if (choice_ads.ne. 3) nsat(ig, ik) = adswater_sat * Kd(ig, ik) / Ka(ig, ik)602 if (choice_ads.ne.0) nsat(ig, ik) = adswater_sat * Kd(ig, ik) / Ka(ig, ik) 604 603 605 604 ! calculate C, E, and F coefficients for later calculations … … 1299 1298 1300 1299 ! calculate how close the water vapor content is to saturizing the adsorbed water 1301 if (choice_ads.ne. 3) preduite(ig, ik) = znsoil(ig, ik) / nsat(ig, ik)1300 if (choice_ads.ne.0) preduite(ig, ik) = znsoil(ig, ik) / nsat(ig, ik) 1302 1301 1303 1302 ! write the results to the return variable
Note: See TracChangeset
for help on using the changeset viewer.