Corrects the extended path when bytecode option is used

time-shift
ferhat 2014-12-19 14:53:23 +01:00
parent 077654fda2
commit 823477519c
2 changed files with 3 additions and 2 deletions

View File

@ -204,7 +204,7 @@ while (t<sample_size)
while 1
if ~increase_periods
if bytecode_flag && ~options_.ep.stochastic.order
[flag,tmp] = bytecode('dynamic',endo_simul_1,exo_simul_1);
[flag,tmp] = bytecode('dynamic',endo_simul_1,exo_simul_1, M_.params, endo_simul_1, options_.ep.periods);
else
flag = 1;
end
@ -288,7 +288,7 @@ while (t<sample_size)
end
% Solve the perfect foresight model with an increased number of periods.
if bytecode_flag && ~options_.ep.stochastic.order
[flag,tmp] = bytecode('dynamic',endo_simul_1,exo_simul_1);
[flag,tmp] = bytecode('dynamic',endo_simul_1,exo_simul_1, M_.params, endo_simul_1, options_.ep.periods);
else
flag = 1;
end

View File

@ -68,4 +68,5 @@ pfm.dynamic_model = str2func([DynareModel.fname,'_dynamic']);
pfm.verbose = DynareOptions.ep.verbosity;
pfm.maxit_ = DynareOptions.simul.maxit;
pfm.tolerance = DynareOptions.dynatol.f;
pfm.use_bytecode = DynareOptions.ep.use_bytecode ;