Skip to content

Commit ae4be0f

Browse files
format
1 parent 7a84444 commit ae4be0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/systems/systemstructure.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,8 @@ function _structural_simplify!(state::TearingState, io; simplify = false,
638638

639639
ci = infer_clocks!(ClockInference(state))
640640
# TODO: make it work with clocks
641-
if sys isa ODESystem && all(isequal(Continuous()), ci.var_domain) && !all(all(x->!(typeof(x) <: Union{Sample,Hold,ShiftIndex}),io))
641+
if sys isa ODESystem && all(isequal(Continuous()), ci.var_domain) &&
642+
!all(all(x -> !(typeof(x) <: Union{Sample, Hold, ShiftIndex}), io))
642643
isys = ModelingToolkit.generate_initializesystem(sys)
643644
!isempty(equations(isys)) &&
644645
(isys = structural_simplify(isys; fully_determined = false))

test/clock.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ By inference:
6262
=> Shift(x, 0, dt) := (Shift(x, -1, dt) + dt) / (1 - dt) # Discrete system
6363
=#
6464

65-
6665
ci, varmap = infer_clocks(sys)
6766
eqmap = ci.eq_domain
6867
tss, inputs = ModelingToolkit.split_system(deepcopy(ci))

0 commit comments

Comments
 (0)