Skip to content
Snippets Groups Projects
Verified Commit afeddc66 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

stochastic_solvers.m: set dr.state_var for purely backwards models at order=1

Subsequent codes may need it. Closes Dynare/dynare#1703

(cherry picked from commit 57bbec1f)
parent d3768571
Branches
Tags
No related merge requests found
......@@ -216,6 +216,7 @@ if M_.maximum_endo_lead == 0
% backward models: simplified code exist only at order == 1
if local_order == 1
[k1,~,k2] = find(kstate(:,4));
dr.state_var = k2;
dr.ghx(:,k1) = -b\jacobia_(:,k2);
if M_.exo_nbr
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