Corrects the extended path when bytecode option is used
parent
077654fda2
commit
823477519c
|
@ -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
|
||||
|
|
|
@ -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 ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue