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

:bug: Steady state computation could fail with block+bytecode+mfs>0

The Jacobian used for solving a block was not square if there were recursive
variables.
parent 030316f2
No related branches found
No related tags found
No related merge requests found
Pipeline #8387 passed
......@@ -508,3 +508,4 @@ function [r, g1] = block_bytecode_mfs_steadystate(y, b, y_all, exo, params, T, M
mfs_idx = M.block_structure_stat.block(b).variable(end-M.block_structure_stat.block(b).mfs+1:end);
y_all(mfs_idx) = y;
[r, g1] = bytecode(y_all, exo, params, y_all, 1, y_all, T, 'evaluate', 'static', 'block_decomposed', ['block = ' int2str(b) ]);
g1 = g1(:,end-M.block_structure_stat.block(b).mfs+1:end); % Make Jacobian square if mfs>0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment