Fix treatment of error conditions in bytecode.
parent
6e8b35c7f3
commit
b9df616c18
|
@ -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
|
||||
|
@ -129,4 +134,4 @@ end
|
|||
dyn2vec;
|
||||
|
||||
ts = dseries(transpose(oo_.endo_simul),options_.initial_period,cellstr(M_.endo_names));
|
||||
assignin('base', 'Simulated_time_series', ts);
|
||||
assignin('base', 'Simulated_time_series', ts);
|
||||
|
|
Loading…
Reference in New Issue