Skip to content

Commit 76ccb08

Browse files
BenChungAayushSabharwal
authored andcommitted
Change the external synchronous signature to include the id/clock map
1 parent 2d13407 commit 76ccb08

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

0 commit comments

Comments
 (0)