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