Skip to content

Commit

Permalink
Update STEMMUS_SCOPE.m
Browse files Browse the repository at this point in the history
If groundwater depth < 1 cm, soil is fully saturated and no groundwater recharge
  • Loading branch information
MostafaGomaa93 authored Jun 21, 2024
1 parent dcdb1bb commit fc9b954
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/STEMMUS_SCOPE.m
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,9 @@
[depToGWT_end, indxGWLay_end, gwfluxes] = groundwater.calculateGroundwaterRecharge(EnergyVariables, SoilVariables, depToGWT_strt, indxGWLay_strt, KT, GroundwaterSettings);
depToGWT_strt = depToGWT_end; % for next time step
indxGWLay_strt = indxGWLay_end; % for next time step
if GroundwaterSettings.gw_Dep <= 1 % soil is fully saturated
gwfluxes.recharge = 0;
end
else
gwfluxes.recharge = 0;
end
Expand Down

0 comments on commit fc9b954

Please sign in to comment.