Skip to content
Snippets Groups Projects
Commit b9df616c authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix treatment of error conditions in bytecode.

parent 6e8b35c7
Branches
Tags
No related merge requests found
......@@ -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);
\ No newline at end of file
assignin('base', 'Simulated_time_series', ts);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment