Skip to content

Commit 28e4282

Browse files
authored
Make sure the type of FullGridCellList does not change with the search radius (#116)
1 parent 53374a2 commit 28e4282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cell_lists/full_grid.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function FullGridCellList(; min_corner, max_corner,
6060
if search_radius < eps()
6161
# Create an empty "template" cell list to be used with `copy_cell_list`
6262
cells = construct_backend(backend, 0, max_points_per_cell)
63-
linear_indices = nothing
63+
linear_indices = LinearIndices(ntuple(_ -> 0, length(min_corner)))
6464
else
6565
n_cells_per_dimension = ceil.(Int, (max_corner .- min_corner) ./ search_radius)
6666
linear_indices = LinearIndices(Tuple(n_cells_per_dimension))

0 commit comments

Comments
 (0)