Do not compute static residuals if steady state routine failed.

Avoids cryptic model dependent error message.
time-shift
Stéphane Adjemian (Karaba) 2017-01-04 10:26:22 +01:00
parent 09e7dde0ea
commit 515e080f49
1 changed files with 7 additions and 1 deletions

View File

@ -87,7 +87,13 @@ if info(1) == 0
end
else
if options_.noprint == 0
resid;
if ~isempty(steady_state)
resid;
else
skipline()
disp('Residuals of the static equations cannot be computed because the steady state routine returned an empty vector.')
skipline()
end
end
if options_.debug
fprintf('\nThe steady state computation failed. It terminated with the following values:\n')