Skip to content

Commit

Permalink
Merge pull request #203 from EcoExtreML/202-any()-function-is-needed-…
Browse files Browse the repository at this point in the history
…in-the-solveTridiagonalMatrixEquation.m

Update solveTridiagonalMatrixEquations.m
  • Loading branch information
SarahAlidoost authored Nov 8, 2023
2 parents 505539c + c5a3aa0 commit be6a9a7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Unreleased

**Fixed:**

- use `any()` function in `solveTridiagonalMatrixEquations.m` in
[203](https://github.com/EcoExtreML/STEMMUS_SCOPE/pull/203)


<a name="1.4.0"></a>
# [1.4.0](https://github.com/EcoExtreML/STEMMUS_SCOPE/releases/tag/1.4.0) - 17 Oct 2023
Expand Down
Binary file modified run_model_on_snellius/exe/STEMMUS_SCOPE
Binary file not shown.
4 changes: 2 additions & 2 deletions src/+soilmoisture/solveTridiagonalMatrixEquations.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
SAVEhh(i) = hh(i);
end

if isnan(SAVEhh) == 1 || ~isreal(SAVEhh)
warning('\n SAVEhh == 1 or not real\r');
if any(isnan(SAVEhh)) == 1 || any(~isreal(SAVEhh))
warning('\n some items of SAVEhh are nan or not real\r');
end
end

0 comments on commit be6a9a7

Please sign in to comment.