Commit 97b894a1 authored by Johannes Pfeifer 's avatar Johannes Pfeifer Committed by Stéphane Adjemian

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

parent 1a4257ac
......@@ -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_);
......
Markdown is supported
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