Commit 3e2a75d3 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Fix bug in simult_ for purely forward looking models

simult_ simulated one period too much, thinking there was a lag. This resulted in a crash trying to plot irfs.
parent 5b6e3bdb
......@@ -54,7 +54,7 @@ if ~options_.k_order_solver || (options_.k_order_solver && options_.pruning) %if
end
if options_.k_order_solver && ~options_.pruning % Call dynare++ routines.
ex_ = [zeros(1,exo_nbr); ex_];
ex_ = [zeros(M_.maximum_lag,M_.exo_nbr); ex_];
switch options_.order
case 1
[err, y_] = dynare_simul_(1,M_.nstatic,M_.npred,M_.nboth,M_.nfwrd,exo_nbr, ...
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment