Skip to content

Commit afc84fd

Browse files
committed
Use index reduce after alias elimination
1 parent 5eabc3a commit afc84fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/abstractsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ Structurally simplify algebraic equations in a system and compute the
522522
topological sort of the observed equations.
523523
"""
524524
function structural_simplify(sys::AbstractSystem)
525-
sys = tearing(alias_elimination(sys))
525+
sys = tearing(dae_index_lowering(alias_elimination(sys)))
526526
fullstates = [map(eq->eq.lhs, observed(sys)); states(sys)]
527527
@set! sys.observed = topsort_equations(observed(sys), fullstates)
528528
return sys

0 commit comments

Comments
 (0)