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

Subsequent codes may need it. Closes https://git.dynare.org/Dynare/dynare/-/issues/1703
pac-components
Johannes Pfeifer 2021-09-16 20:44:14 +02:00
parent 8ae487a111
commit 57bbec1f72
1 changed files with 1 additions and 0 deletions

View File

@ -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);