Skip to content
Snippets Groups Projects
Commit ee07c57c authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
Browse files

Provide meaningful error message if oo_.exo_simul is larger than options_.periods

(cherry picked from commit 97b894a1)
parent 76b73f2d
Branches
Tags
No related merge requests found
......@@ -51,6 +51,10 @@ if options_.periods == 0
error('PERFECT_FORESIGHT_SETUP: number of periods for the simulation isn''t specified')
end
if options_.periods<max([M_.det_shocks.periods])
error('PERFECT_FORESIGHT_SETUP: number of periods for the simulation is specified to be smaller than the period of the last shock')
end
if ~options_.initval_file
if isempty(options_.datafile)
oo_=make_ex_(M_,options_,oo_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment