Code simplification, do not pass endo_simul and exo_simul to bytecode through the global structure oo_.
parent
4aedf7e9c0
commit
75675d3677
|
@ -203,10 +203,8 @@ while (t<sample_size)
|
||||||
endo_simul = endo_simul_1;
|
endo_simul = endo_simul_1;
|
||||||
while 1
|
while 1
|
||||||
if ~increase_periods
|
if ~increase_periods
|
||||||
if bytecode_flag
|
if bytecode_flag && ~options_.ep.stochastic.order
|
||||||
oo_.endo_simul = endo_simul_1;
|
[flag,tmp] = bytecode('dynamic',endo_simul_1,exo_simul_1);
|
||||||
oo_.exo_simul = exo_simul_1;
|
|
||||||
[flag,tmp] = bytecode('dynamic');
|
|
||||||
else
|
else
|
||||||
flag = 1;
|
flag = 1;
|
||||||
end
|
end
|
||||||
|
@ -282,10 +280,8 @@ while (t<sample_size)
|
||||||
exo_simul_1 = [ exo_simul_1 ; zeros(ep.step,exo_nbr)];
|
exo_simul_1 = [ exo_simul_1 ; zeros(ep.step,exo_nbr)];
|
||||||
end
|
end
|
||||||
% Solve the perfect foresight model with an increased number of periods.
|
% Solve the perfect foresight model with an increased number of periods.
|
||||||
if bytecode_flag
|
if bytecode_flag && ~options_.ep.stochastic.order
|
||||||
oo_.endo_simul = endo_simul_1;
|
[flag,tmp] = bytecode('dynamic',endo_simul_1,exo_simul_1);
|
||||||
oo_.exo_simul = exo_simul_1;
|
|
||||||
[flag,tmp] = bytecode('dynamic');
|
|
||||||
else
|
else
|
||||||
flag = 1;
|
flag = 1;
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue