Skip to content

Commit 405aafa

Browse files
BenChungAayushSabharwal
authored andcommitted
Change the external synchronous signature to include the id/clock map
1 parent b60be79 commit 405aafa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/systems/systemstructure.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,9 @@ function mtkcompile!(state::TearingState; simplify = false,
934934
deleteat!(additional_passes, discrete_pass_idx)
935935
# in the case of a hybrid system, the discrete_compile pass should take the currents of sys.discrete_subsystems
936936
# and modifies discrete_subsystems to bea tuple of the io and anything else, while adding or manipulating the rest of sys as needed
937-
return discrete_compile(sys, tss[[i for i in eachindex(tss) if i != continuous_id]], clocked_inputs, ci)
937+
return discrete_compile(
938+
sys, tss[[i for i in eachindex(tss) if i != continuous_id]],
939+
clocked_inputs, ci, id_to_clock)
938940
end
939941
throw(HybridSystemNotSupportedException("""
940942
Hybrid continuous-discrete systems are currently not supported with \

0 commit comments

Comments
 (0)