Skip to content

Commit cc0d5da

Browse files
refactor: do not run clock inference for time-independent systems
1 parent eedc868 commit cc0d5da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/systems/systemstructure.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,11 @@ function mtkcompile!(state::TearingState; simplify = false,
913913
inputs = Any[], outputs = Any[],
914914
disturbance_inputs = Any[],
915915
kwargs...)
916+
if !is_time_dependent(state.sys)
917+
return _mtkcompile!(state; simplify, check_consistency,
918+
inputs, outputs, disturbance_inputs,
919+
fully_determined, kwargs...)
920+
end
916921
# split_system returns one or two systems and the inputs for each
917922
# mod clock inference to be binary
918923
# if it's continous keep going, if not then error unless given trait impl in additional passes

0 commit comments

Comments
 (0)