Skip to content

Commit 7897880

Browse files
committed
Fix test failure
1 parent c433013 commit 7897880

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/systems/abstractsystem.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,10 @@ function structural_simplify(sys::AbstractSystem)
527527
if sys isa ODESystem
528528
sys = dae_index_lowering(sys)
529529
end
530-
sys = sort_states(tearing(sys))
530+
sys = tearing(sys)
531+
if sys isa ODESystem
532+
sys = sort_states(sys)
533+
end
531534
fullstates = [map(eq->eq.lhs, observed(sys)); states(sys)]
532535
@set! sys.observed = topsort_equations(observed(sys), fullstates)
533536
return sys

0 commit comments

Comments
 (0)