From 12a5bc84421d5bdd533d9cb5250ef31ed2f53697 Mon Sep 17 00:00:00 2001 From: Mostafa Gomaa Daoud <54531356+MostafaGomaa93@users.noreply.github.com> Date: Wed, 19 Jun 2024 10:57:49 +0200 Subject: [PATCH] Update calculatesSoilWaterFluxes.m --- src/+soilmoisture/calculatesSoilWaterFluxes.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/+soilmoisture/calculatesSoilWaterFluxes.m b/src/+soilmoisture/calculatesSoilWaterFluxes.m index 63a6d584..6dd6e72b 100644 --- a/src/+soilmoisture/calculatesSoilWaterFluxes.m +++ b/src/+soilmoisture/calculatesSoilWaterFluxes.m @@ -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);