We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7897880 commit 3854947Copy full SHA for 3854947
src/systems/abstractsystem.jl
@@ -525,12 +525,9 @@ function structural_simplify(sys::AbstractSystem)
525
sys = initialize_system_structure(alias_elimination(sys))
526
check_consistency(structure(sys))
527
if sys isa ODESystem
528
- sys = dae_index_lowering(sys)
+ sys = sort_states(dae_index_lowering(sys))
529
end
530
sys = tearing(sys)
531
- if sys isa ODESystem
532
- sys = sort_states(sys)
533
- end
534
fullstates = [map(eq->eq.lhs, observed(sys)); states(sys)]
535
@set! sys.observed = topsort_equations(observed(sys), fullstates)
536
return sys
0 commit comments