Skip to content
Snippets Groups Projects
Commit 515e080f authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Do not compute static residuals if steady state routine failed.

Avoids cryptic model dependent error message.
parent 09e7dde0
Branches
Tags
No related merge requests found
...@@ -87,7 +87,13 @@ if info(1) == 0 ...@@ -87,7 +87,13 @@ if info(1) == 0
end end
else else
if options_.noprint == 0 if options_.noprint == 0
if ~isempty(steady_state)
resid; resid;
else
skipline()
disp('Residuals of the static equations cannot be computed because the steady state routine returned an empty vector.')
skipline()
end
end end
if options_.debug if options_.debug
fprintf('\nThe steady state computation failed. It terminated with the following values:\n') fprintf('\nThe steady state computation failed. It terminated with the following values:\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment