Skip to content

Commit

Permalink
Fix method overwrite warning
Browse files Browse the repository at this point in the history
  • Loading branch information
efaulhaber committed Dec 3, 2024
1 parent cbf25c5 commit 7779a7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/PointNeighborsCellListMapExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ mutable struct CellListMapNeighborhoodSearch{CL, B}
cell_list :: CL
box :: B

function PointNeighbors.CellListMapNeighborhoodSearch(NDIMS; search_radius = 1.0,
# Add dispatch on `NDIMS` to avoid method overwriting of the function in PointNeighbors.jl
function PointNeighbors.CellListMapNeighborhoodSearch(NDIMS::Integer;
search_radius = 1.0,
points_equal_neighbors = false)
# Create a cell list with only one point and resize it later
x = zeros(NDIMS, 1)
Expand Down

0 comments on commit 7779a7e

Please sign in to comment.