Fix treatment of error conditions in bytecode.

time-shift
Sébastien Villemot 2013-12-13 16:49:00 +01:00
parent 6e8b35c7f3
commit b9df616c18
1 changed files with 6 additions and 1 deletions

View File

@ -110,6 +110,11 @@ if(options_.block)
else
if(options_.bytecode)
[info, oo_.endo_simul]=bytecode('dynamic');
if info == 1
oo_.deterministic_simulation.status = 0;
else
oo_.deterministic_simulation.status = 1;
end;
mexErrCheck('bytecode', info);
else
if M_.maximum_endo_lead == 0 % Purely backward model