Skip to content

Commit

Permalink
Update solveTridiagonalMatrixEquations.m
Browse files Browse the repository at this point in the history
The any() function is needed in line 24 -> solveTridiagonalMatrixEquations.m file to let the model run.

However, since I am a new user of the code, I don't know if that change will give the same or different results from the main code.
  • Loading branch information
MostafaGomaa93 committed Nov 8, 2023
1 parent 505539c commit 8eaed2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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)
if any(isnan(SAVEhh)) == 1 || any(~isreal(SAVEhh))
warning('\n SAVEhh == 1 or not real\r');
end
end

0 comments on commit 8eaed2f

Please sign in to comment.