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

sim1: when there are NaNs/Infs, raise a warning rather than an error.

Otherwise the homotopy procedure can fail prematurely.

Thanks to Tom Holden for the suggestion.
parent 26f2b301
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ if stop
skipline();
fprintf('\nSimulation terminated after %d iterations.\n',iter);
fprintf('Total time of simulation: %16.13f\n',etime(clock,h1));
error('Simulation terminated with NaN or Inf in the residuals or endogenous variables. There is most likely something wrong with your model.');
fprintf('WARNING: Simulation terminated with NaN or Inf in the residuals or endogenous variables. There is most likely something wrong with your model.\n');
else
skipline();
fprintf('\nSimulation concluded successfully after %d iterations.\n',iter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment