Skip to content

Commit

Permalink
Update solveSoilMoistureBalance.m
Browse files Browse the repository at this point in the history
  • Loading branch information
MostafaGomaa93 authored Jun 19, 2024
1 parent 12a5bc8 commit f7919de
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/+soilmoisture/solveSoilMoistureBalance.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@
% fix hh values
ModelSettings = io.getModelSettings();

if ~GroundwaterSettings.GroundwaterCoupling % Groundwater Coupling is not activated, added by Mostafa
indxBotm = 1; % index of bottom layer, by default (no groundwater coupling) its layer with index 1, since STEMMUS calculations starts from bottom to top
else % Groundwater Coupling is activated, added by Mostafa
indxBotm = GroundwaterSettings.indxBotmLayer; % index of bottom boundary layer after neglecting the saturated layers (from bottom to top)
if ~GroundwaterSettings.GroundwaterCoupling % no Groundwater coupling, added by Mostafa
indxBotm = 1; % index of bottom layer is 1, STEMMUS calculates from bottom to top
else % Groundwater Coupling is activated
% index of bottom layer after neglecting saturated layers (from bottom to top)
indxBotm = GroundwaterSettings.indxBotmLayer;
end

for i = indxBotm:ModelSettings.NN
Expand Down

0 comments on commit f7919de

Please sign in to comment.