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

LMMCP: fix bug when periods=1

The fix in commit 24cc67e5 was incorrect.

(cherry picked from commit 46da76c0)
parent 53b55914
Branches
Tags
1 merge request!1815WIP Cherry-picks for 4.6
......@@ -82,7 +82,7 @@ for it = maximum_lag+(1:T)
[res,jacobian] = dynamic_function(YY(i_cols),exo_simul, params, steady_state,it);
residuals(i_rows) = res(eq_index);
if T==1 && it==maximum_lag+1
[rows, cols, vals] = find(jacobian(:,i_cols_0));
[rows, cols, vals] = find(jacobian(eq_index,i_cols_0));
if size(jacobian, 1) == 1 % find() will return row vectors in this case
rows = rows';
cols = cols';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment