Fix handling of warnings in perfect foresight solver with homotopy.

time-shift
Sébastien Villemot 2015-04-22 12:23:20 +02:00
parent df697febcb
commit 8ab1239d79
1 changed files with 2 additions and 1 deletions

View File

@ -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