Skip to content
Snippets Groups Projects
Verified Commit 104f2fe8 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Delete a vestige: do not call simul() but perfect_foresight_solver().

Fixes crash of det_cond_forecast with expected shocks without surprises.
parent 1bd5eb6c
Branches
No related tags found
No related merge requests found
......@@ -429,7 +429,7 @@ if pf && ~surprise
not_achieved = 1;
alpha = 1;
while not_achieved
simul();
oo_ = perfect_foresight_solver(M_, options_, oo_);
result = sum(sum(isfinite(oo_.endo_simul(:,time_index_constraint)))) == ny * constrained_periods;
if result
y = oo_.endo_simul(constrained_vars, time_index_constraint);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment