Skip to content

Commit a2e318e

Browse files
refactor: do not run clock inference for time-independent systems
1 parent 38a1d73 commit a2e318e

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
@@ -915,6 +915,11 @@ function mtkcompile!(state::TearingState; simplify = false,
915915
inputs = Any[], outputs = Any[],
916916
disturbance_inputs = Any[],
917917
kwargs...)
918+
if !is_time_dependent(state.sys)
919+
return _mtkcompile!(state; simplify, check_consistency,
920+
inputs, outputs, disturbance_inputs,
921+
fully_determined, kwargs...)
922+
end
918923
# split_system returns one or two systems and the inputs for each
919924
# mod clock inference to be binary
920925
# if it's continous keep going, if not then error unless given trait impl in additional passes

0 commit comments

Comments
 (0)