Skip to content

Commit

Permalink
Update assembleCoefficientMatrices.m
Browse files Browse the repository at this point in the history
  • Loading branch information
MostafaGomaa93 authored Jun 19, 2024
1 parent 2cb7915 commit 02a9c14
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/+soilmoisture/assembleCoefficientMatrices.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
HeatMatrices.C4_a = [];
HeatMatrices.C5_a = [];

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

for i = indxBotm:ModelSettings.NL
Expand Down

0 comments on commit 02a9c14

Please sign in to comment.