From c795088fa31fea57ecb1ae6d6e79815747619fd0 Mon Sep 17 00:00:00 2001 From: Mostafa Gomaa Daoud <54531356+MostafaGomaa93@users.noreply.github.com> Date: Thu, 15 Aug 2024 11:58:00 +0200 Subject: [PATCH] move calculateSoilLayerThickness from +groundwater to +io --- src/STEMMUS_SCOPE.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/STEMMUS_SCOPE.m b/src/STEMMUS_SCOPE.m index 0ba991f3..a02b1b96 100644 --- a/src/STEMMUS_SCOPE.m +++ b/src/STEMMUS_SCOPE.m @@ -60,6 +60,7 @@ % Load groundwater settings GroundwaterSettings = groundwater.initializeGroundwaterSettings(); + GroundwaterSettings.soilThick = io.calculateSoilLayerThickness(ModelSettings); % load forcing data ForcingData = io.loadForcingData(InputPath, TimeProperties, SoilProperties, ModelSettings.Tot_Depth, GroundwaterSettings); @@ -292,9 +293,6 @@ Delt_t0 = Delt_t; % Duration of last time step TOLD_CRIT = []; - % 15. Calculate soil layer thickness - GroundwaterSettings.soilThick = groundwater.calculateSoilLayerThickness(ModelSettings); - % for soil moisture and temperature outputs monitorDepthTemperature = ModelSettings.NL:-1:1; monitorDepthSoilMoisture = ModelSettings.NL:-1:1;