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.time-shift
parent
26f2b301b0
commit
979101fa55
|
@ -171,7 +171,7 @@ if stop
|
||||||
skipline();
|
skipline();
|
||||||
fprintf('\nSimulation terminated after %d iterations.\n',iter);
|
fprintf('\nSimulation terminated after %d iterations.\n',iter);
|
||||||
fprintf('Total time of simulation: %16.13f\n',etime(clock,h1));
|
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
|
else
|
||||||
skipline();
|
skipline();
|
||||||
fprintf('\nSimulation concluded successfully after %d iterations.\n',iter);
|
fprintf('\nSimulation concluded successfully after %d iterations.\n',iter);
|
||||||
|
|
Loading…
Reference in New Issue