Skip to content

Commit 16c9c0d

Browse files
committed
Disable computation of Jacobian sparsity pattern from torn system graph
1 parent 7d56584 commit 16c9c0d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/systems/codegen.jl

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

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

0 commit comments

Comments
 (0)