Skip to content

Commit 8aa5f0d

Browse files
BenChungAayushSabharwal
authored andcommitted
Change the external synchronous signature to include the id/clock map
1 parent a4a960e commit 8aa5f0d

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

0 commit comments

Comments
 (0)