Skip to content

Commit

Permalink
Merge pull request #260 from EcoExtreML/revise-IS
Browse files Browse the repository at this point in the history
revise IS, relates to (#252)
  • Loading branch information
SarahAlidoost committed Sep 25, 2024
2 parents 1c15e9a + 9db52b5 commit 56f2c81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@


**Fixed:**
- The bug in calculation of IS discussed in
[#252](https://github.com/EcoExtreML/STEMMUS_SCOPE/issues/252)


<a name="1.6.0"></a>
Expand Down
Binary file modified run_model_on_snellius/exe/STEMMUS_SCOPE
Binary file not shown.
4 changes: 2 additions & 2 deletions src/+init/soilHeteroSubroutine.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 56f2c81

Please sign in to comment.