You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root = RegionTrees.Cell(SVector(0., 0), SVector(1., 1))
split!(root)
split!(root[1,1])
function run(root)
for c in RegionTrees.allleaves(root)
a = c.boundary.origin + c.boundary.widths
#@show a
end
end
@code_warntype run(root)
shows that c is ::Any .
A simple solution would be adding types in allleaves()
function allleaves(cell::RegionTrees.Cell{Data, N, T, L}) where {Data, N, T, L}
Channel{RegionTrees.Cell{Data, N, T, L}}() do c
for child in allcells(cell)
if RegionTrees.isleaf(child)
put!(c, child)
end
end
end
end
The text was updated successfully, but these errors were encountered:
shows that
c
is::Any
.A simple solution would be adding types in allleaves()
The text was updated successfully, but these errors were encountered: