Skip to content
Snippets Groups Projects
Verified Commit 23fdec40 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge branch 'purely_backward' of git.dynare.org:JohannesPfeifer/dynare

Ref. !1951
parents 1921e3c9 17a58cce
Branches
Tags
1 merge request!1951stochastic_solvers.m: fix bug introduced in afeddc66
Pipeline #6197 passed
...@@ -216,7 +216,11 @@ if M_.maximum_endo_lead == 0 ...@@ -216,7 +216,11 @@ if M_.maximum_endo_lead == 0
% backward models: simplified code exist only at order == 1 % backward models: simplified code exist only at order == 1
if local_order == 1 if local_order == 1
[k1,~,k2] = find(kstate(:,4)); [k1,~,k2] = find(kstate(:,4));
dr.state_var = k2; if M_.maximum_endo_lag
dr.state_var = find(M_.lead_lag_incidence(1,:));
else
dr.state_var = [];
end
dr.ghx(:,k1) = -b\jacobia_(:,k2); dr.ghx(:,k1) = -b\jacobia_(:,k2);
if M_.exo_nbr if M_.exo_nbr
dr.ghu = -b\jacobia_(:,nz+1:end); dr.ghu = -b\jacobia_(:,nz+1:end);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment