We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5efe374 commit 38a1d73Copy full SHA for 38a1d73
src/systems/clock_inference.jl
@@ -239,12 +239,8 @@ function infer_clocks!(ci::ClockInference)
239
for partition in clock_partitions
240
clockidxs = findall(vert -> Moshi.Data.isa_variant(vert, ClockVertex.Clock), partition)
241
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
- """))
+ push!(partition, ClockVertex.Clock(ContinuousClock()))
+ push!(clockidxs, length(partition))
248
end
249
if length(clockidxs) > 1
250
vidxs = Int[vert.:1
0 commit comments