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

Block decomposition: fix sparse indices of static Jacobian when mfs > 0

parent 9013a5cb
Branches
Tags
No related merge requests found
Pipeline #8005 passed
......@@ -687,7 +687,8 @@ StaticModel::computeChainRuleJacobian()
{
auto &[eq, var, lag] { indices };
assert(lag == 0);
blocks_jacobian_sparse_column_major_order[blk].emplace(pair{eq, var}, d1);
if (eq >= nb_recursives && var >= nb_recursives)
blocks_jacobian_sparse_column_major_order[blk].emplace(pair{eq-nb_recursives, var-nb_recursives}, d1);
}
blocks_jacobian_sparse_colptr[blk] = computeCSCColPtr(blocks_jacobian_sparse_column_major_order[blk], size);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment