Skip to content

Commit f7fabf5

Browse files
BenChungAayushSabharwal
authored andcommitted
Change the external synchronous signature to include the id/clock map
1 parent d0b4c5a commit f7fabf5

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
@@ -936,7 +936,9 @@ function mtkcompile!(state::TearingState; simplify = false,
936936
deleteat!(additional_passes, discrete_pass_idx)
937937
# in the case of a hybrid system, the discrete_compile pass should take the currents of sys.discrete_subsystems
938938
# and modifies discrete_subsystems to bea tuple of the io and anything else, while adding or manipulating the rest of sys as needed
939-
return discrete_compile(sys, tss[[i for i in eachindex(tss) if i != continuous_id]], clocked_inputs, ci)
939+
return discrete_compile(
940+
sys, tss[[i for i in eachindex(tss) if i != continuous_id]],
941+
clocked_inputs, ci, id_to_clock)
940942
end
941943
throw(HybridSystemNotSupportedException("""
942944
Hybrid continuous-discrete systems are currently not supported with \

0 commit comments

Comments
 (0)