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 e24a388 commit 36aa04aCopy full SHA for 36aa04a
src/systems/abstractsystem.jl
@@ -907,15 +907,11 @@ function structural_simplify(sys::AbstractSystem; simplify=false)
907
sys = expand_connections(sys)
908
sys = alias_elimination(sys)
909
if sys isa ODESystem
910
- sys = ode_order_lowering(sys)
+ sys = dae_index_lowering(ode_order_lowering(sys))
911
end
912
state = TearingState(sys)
913
check_consistency(state)
914
find_solvables!(state)
915
- if sys isa ODESystem
916
- # Aka dae_index_lowering
917
- pantelides!(state)
918
- end
919
sys = tearing_reassemble(state, tearing(state), simplify=simplify)
920
fullstates = [map(eq->eq.lhs, observed(sys)); states(sys)]
921
@set! sys.observed = topsort_equations(observed(sys), fullstates)
0 commit comments