add explicit error message for attempts to simulate a perfectly backward model

time-shift
Michel Juillard 2010-07-23 11:02:03 +02:00
parent 3d0420d220
commit abd558930e
1 changed files with 3 additions and 1 deletions

View File

@ -81,7 +81,9 @@ else
if(options_.bytecode)
oo_.endo_simul=bytecode('dynamic');
else
if M_.maximum_endo_lag ==1 & M_.maximum_endo_lead <= 1
if M_.maximum_endo_lead == 0
error('simul doesn''t simulate purely backward models')
elseif M_.maximum_endo_lag == 1 && M_.maximum_endo_lead == 1
sim1 ;
else
simk ;