Skip to content

Commit 03fc4a4

Browse files
feat: set system scheduling information in structural_simplify
1 parent 4608d65 commit 03fc4a4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/structural_transformation/symbolics_tearing.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,11 +740,13 @@ function update_simplified_system!(
740740
@set! sys.substitutions = Substitutions(subeqs, deps)
741741

742742
# Only makes sense for time-dependent
743-
# TODO: generalize to SDE
744-
if sys isa ODESystem
743+
if has_schedule(sys)
745744
@set! sys.schedule = Schedule(var_eq_matching, dummy_sub)
746745
end
747-
sys = schedule(sys)
746+
if has_isscheduled(sys)
747+
@set! sys.isscheduled = true
748+
end
749+
return sys
748750
end
749751

750752
"""

0 commit comments

Comments
 (0)