Skip to content

Commit 38a1d73

Browse files
refactor: clock partition with no clock is assumed continuous
1 parent 5efe374 commit 38a1d73

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/systems/clock_inference.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,8 @@ function infer_clocks!(ci::ClockInference)
239239
for partition in clock_partitions
240240
clockidxs = findall(vert -> Moshi.Data.isa_variant(vert, ClockVertex.Clock), partition)
241241
if isempty(clockidxs)
242-
vidxs = Int[vert.:1
243-
for vert in partition
244-
if Moshi.Data.isa_variant(vert, ClockVertex.Variable)]
245-
throw(ArgumentError("""
246-
Found clock partion with no associated clock. Involved variables: $(fullvars[vidxs]).
247-
"""))
242+
push!(partition, ClockVertex.Clock(ContinuousClock()))
243+
push!(clockidxs, length(partition))
248244
end
249245
if length(clockidxs) > 1
250246
vidxs = Int[vert.:1

0 commit comments

Comments
 (0)