Fix handling of warnings in perfect foresight solver with homotopy.
parent
df697febcb
commit
8ab1239d79
|
@ -68,6 +68,7 @@ if ~oo_.deterministic_simulation.status && ~options_.no_homotopy
|
|||
skipline()
|
||||
|
||||
% Disable warnings if homotopy
|
||||
warning_old_state = warning;
|
||||
warning off all
|
||||
% Do not print anything
|
||||
oldverbositylevel = options_.verbosity;
|
||||
|
@ -147,7 +148,7 @@ if ~oo_.deterministic_simulation.status && ~options_.no_homotopy
|
|||
fprintf('++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n')
|
||||
skipline()
|
||||
options_.verbosity = oldverbositylevel;
|
||||
warning on all
|
||||
warning(warning_old_state);
|
||||
end
|
||||
|
||||
if oo_.deterministic_simulation.status == 1
|
||||
|
|
Loading…
Reference in New Issue