Skip to content

Commit 78b5832

Browse files
format
1 parent dcffe8f commit 78b5832

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/systems/systemstructure.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,9 @@ 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) && (!has_io ||
642-
!all(all(x -> !(typeof(x) <: Union{Sample, Hold, ShiftIndex}), io)))
641+
if sys isa ODESystem && all(isequal(Continuous()), ci.var_domain) &&
642+
(!has_io ||
643+
!all(all(x -> !(typeof(x) <: Union{Sample, Hold, ShiftIndex}), io)))
643644
isys = ModelingToolkit.generate_initializesystem(sys)
644645
!isempty(equations(isys)) &&
645646
(isys = structural_simplify(isys; fully_determined = false))

0 commit comments

Comments
 (0)