Skip to content

Commit

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

if ~GroundwaterSettings.GroundwaterCoupling % Groundwater Coupling is not activated, added by Mostafa
indxBotm = 1; % index of bottom layer, by defualt (no groundwater coupling) its layer with index 1, since STEMMUS calcuations starts 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
indxBotm = GroundwaterSettings.indxBotmLayer; % index of bottom boundary layer after neglecting the saturated layers (from bottom to top)
% index of bottom layer after neglecting saturated layers (from bottom to top)
indxBotm = GroundwaterSettings.indxBotmLayer;
end

HBoundaryFlux.QMT = SAVE(2, 1, 1) - SAVE(2, 2, 1) * hh(ModelSettings.NN - 1) - SAVE(2, 3, 1) * hh(ModelSettings.NN);
Expand Down

0 comments on commit 12a5bc8

Please sign in to comment.