Commit b9cb511a authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge pull request #489 from JohannesPfeifer/explosive_irf_warning

Add more information when IRFs are not displayed due to explosive simula...
parents b3b2cdfe 4b060c47
......@@ -176,6 +176,12 @@ if options_.irf
y=irf(oo_.dr,cs(M_.exo_names_orig_ord,i), options_.irf, options_.drop, ...
options_.replic, options_.order);
end
if ~options_.noprint && any(any(isnan(y))) && ~options_.pruning && ~(options_.order==1)
fprintf('\nSTOCH_SIMUL: The simulations conducted for generating IRFs to %s were explosive.\n',M_.exo_names(i,:))
fprintf('STOCH_SIMUL: No IRFs will be displayed. Either reduce the shock size, \n')
fprintf('STOCH_SIMUL: use pruning, or set the approximation order to 1.');
skipline(2);
end
if options_.relative_irf
y = 100*y/cs(i,i);
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment