From 2d369fa23b0d03a0e1b0b1b92b666515c5e46bb6 Mon Sep 17 00:00:00 2001 From: Crystal-szj Date: Wed, 25 Sep 2024 10:50:01 +0200 Subject: [PATCH] revise IS, related to (#252) --- src/+init/soilHeteroSubroutine.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/+init/soilHeteroSubroutine.m b/src/+init/soilHeteroSubroutine.m index 042619ba..f78083f4 100644 --- a/src/+init/soilHeteroSubroutine.m +++ b/src/+init/soilHeteroSubroutine.m @@ -47,12 +47,12 @@ j = i - 1; end - SoilVariables.IS(i) = indexOfSoilType; + SoilVariables.IS(j) = indexOfSoilType; if subRoutine == 4 SoilVariables.IS(5:8) = 5; end - J = SoilVariables.IS(i); + J = SoilVariables.IS(j); [SoilVariables, VanGenuchten] = init.updateSoilVariables(SoilVariables, VanGenuchten, SoilProperties, ModelSettings, j, J); SoilVariables.Imped(i) = ImpedF(J);