From 00eb564323a96007fb7436438b74493a6fc87cac Mon Sep 17 00:00:00 2001 From: SarahAlidoost <55081872+SarahAlidoost@users.noreply.github.com> Date: Tue, 17 Oct 2023 16:09:01 +0200 Subject: [PATCH 1/2] Update src/STEMMUS_SCOPE.m Co-authored-by: Bart Schilperoort --- src/STEMMUS_SCOPE.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/STEMMUS_SCOPE.m b/src/STEMMUS_SCOPE.m index 0df8df07..7a9d12dd 100644 --- a/src/STEMMUS_SCOPE.m +++ b/src/STEMMUS_SCOPE.m @@ -353,8 +353,8 @@ TOLD_CRIT = []; % for soil moisture and temperature outputs -Moni_Depth = ModelSettings.NL:-1:1; -Moni_Depth_SM = ModelSettings.NL:-1:1; +monitorDepthTemperature = ModelSettings.NL:-1:1; +monitorDepthSoilMoisture = ModelSettings.NL:-1:1; Sim_Theta_U = []; Sim_Temp = []; From 02556cf69d8f608f2592d11f6652fc51e79617d8 Mon Sep 17 00:00:00 2001 From: SarahAlidoost <55081872+SarahAlidoost@users.noreply.github.com> Date: Tue, 17 Oct 2023 16:09:09 +0200 Subject: [PATCH 2/2] Update src/STEMMUS_SCOPE.m Co-authored-by: Bart Schilperoort --- src/STEMMUS_SCOPE.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/STEMMUS_SCOPE.m b/src/STEMMUS_SCOPE.m index 7a9d12dd..60b95488 100644 --- a/src/STEMMUS_SCOPE.m +++ b/src/STEMMUS_SCOPE.m @@ -743,8 +743,8 @@ SoilVariables.Theta_I = Theta_I; % replace run ObservationPoints, see issue 101 - Sim_Theta_U(KT, 1:length(Moni_Depth_SM)) = Theta_UUU(Moni_Depth_SM, 1, KT); - Sim_Temp(KT, 1:length(Moni_Depth)) = TTT(Moni_Depth, KT); + Sim_Theta_U(KT, 1:length(monitorDepthSoilMoisture)) = Theta_UUU(monitorDepthSoilMoisture, 1, KT); + Sim_Temp(KT, 1:length(monitorDepthTemperature)) = TTT(monitorDepthTemperature, KT); end if (TEND - TIME) < 1E-3 for MN = 1:NN