Skip to content

Commit acfcb1d

Browse files
committed
Set the size of the sparse matrix in torn_system_with_nlsolve_jacobian_sparsity
1 parent ece9265 commit acfcb1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structural_transformation/codegen.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function torn_system_with_nlsolve_jacobian_sparsity(state, var_eq_matching, var_
9393
end
9494
end
9595
end
96-
sparse(I, J, true)
96+
sparse(I, J, true, length(eqs_idxs), length(states_idxs))
9797
end
9898

9999
function gen_nlsolve!(is_not_prepended_assignment, eqs, vars, u0map::AbstractDict,

0 commit comments

Comments
 (0)