Skip to content
Snippets Groups Projects
Commit 8ab1239d authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix handling of warnings in perfect foresight solver with homotopy.

parent df697feb
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,7 @@ if ~oo_.deterministic_simulation.status && ~options_.no_homotopy ...@@ -68,6 +68,7 @@ if ~oo_.deterministic_simulation.status && ~options_.no_homotopy
skipline() skipline()
% Disable warnings if homotopy % Disable warnings if homotopy
warning_old_state = warning;
warning off all warning off all
% Do not print anything % Do not print anything
oldverbositylevel = options_.verbosity; oldverbositylevel = options_.verbosity;
...@@ -147,7 +148,7 @@ if ~oo_.deterministic_simulation.status && ~options_.no_homotopy ...@@ -147,7 +148,7 @@ if ~oo_.deterministic_simulation.status && ~options_.no_homotopy
fprintf('++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n') fprintf('++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n')
skipline() skipline()
options_.verbosity = oldverbositylevel; options_.verbosity = oldverbositylevel;
warning on all warning(warning_old_state);
end end
if oo_.deterministic_simulation.status == 1 if oo_.deterministic_simulation.status == 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment