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

time-shift
Johannes Pfeifer 2017-08-01 12:29:16 +02:00 committed by Stéphane Adjemian (Scylla)
parent 1a4257ac4b
commit 97b894a1cd
1 changed files with 4 additions and 0 deletions

View File

@ -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_);