Skip to content

Commit 1d6d6ca

Browse files
fix: re-enable usage of torn_system_jacobian_sparsity in jacobian_sparsity
1 parent 1cb6b6a commit 1d6d6ca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/systems/codegen.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,8 @@ end
455455
Return the sparsity pattern of the jacobian of `sys` as a matrix.
456456
"""
457457
function jacobian_sparsity(sys::System)
458-
# disable to fix https://github.com/SciML/ModelingToolkit.jl/issues/3871
459-
#sparsity = torn_system_jacobian_sparsity(sys)
460-
#sparsity === nothing || return sparsity
458+
sparsity = torn_system_jacobian_sparsity(sys)
459+
sparsity === nothing || return sparsity
461460

462461
Symbolics.jacobian_sparsity([eq.rhs for eq in full_equations(sys)],
463462
[dv for dv in unknowns(sys)])

0 commit comments

Comments
 (0)