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.
FullGridCellList
1 parent 53374a2 commit 28e4282Copy full SHA for 28e4282
src/cell_lists/full_grid.jl
@@ -60,7 +60,7 @@ function FullGridCellList(; min_corner, max_corner,
60
if search_radius < eps()
61
# Create an empty "template" cell list to be used with `copy_cell_list`
62
cells = construct_backend(backend, 0, max_points_per_cell)
63
- linear_indices = nothing
+ linear_indices = LinearIndices(ntuple(_ -> 0, length(min_corner)))
64
else
65
n_cells_per_dimension = ceil.(Int, (max_corner .- min_corner) ./ search_radius)
66
linear_indices = LinearIndices(Tuple(n_cells_per_dimension))
0 commit comments