Provide meaningful error message if oo_.exo_simul is larger than options_.periods
parent
1a4257ac4b
commit
97b894a1cd
|
@ -51,6 +51,10 @@ if options_.periods == 0
|
||||||
error('PERFECT_FORESIGHT_SETUP: number of periods for the simulation isn''t specified')
|
error('PERFECT_FORESIGHT_SETUP: number of periods for the simulation isn''t specified')
|
||||||
end
|
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 ~options_.initval_file
|
||||||
if isempty(options_.datafile)
|
if isempty(options_.datafile)
|
||||||
oo_=make_ex_(M_,options_,oo_);
|
oo_=make_ex_(M_,options_,oo_);
|
||||||
|
|
Loading…
Reference in New Issue