From 2bdb346045fb74c68ffe0434f105e209fc7a7113 Mon Sep 17 00:00:00 2001 From: SarahAlidoost Date: Wed, 6 Mar 2024 13:57:03 +0100 Subject: [PATCH] fix if statement --- src/STEMMUS_SCOPE.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/STEMMUS_SCOPE.m b/src/STEMMUS_SCOPE.m index b19f9a5b..61f8266f 100644 --- a/src/STEMMUS_SCOPE.m +++ b/src/STEMMUS_SCOPE.m @@ -312,12 +312,13 @@ disp('The calculations start now'); end -if GroundwaterSettings.GroundwaterCoupling == 1 % Groundwater coupling is enabled - BoundaryCondition.NBChB = 1; -end - % Actually run the model if strcmp(bmiMode, 'update') || strcmp(runMode, 'full') + + if GroundwaterSettings.GroundwaterCoupling == 1 % Groundwater coupling is enabled + BoundaryCondition.NBChB = 1; + end + % Will do one timestep in "update mode", and run until the end if in "full run" mode. while KT < endTime KT = KT + 1; % Counting Number of timesteps