Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LasNikas committed Dec 19, 2024
1 parent bac34f1 commit 4f701da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/nhs_faces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ end

function FaceNeighborhoodSearch{NDIMS}(; cell_list = DictionaryCellList{NDIMS}(),
search_radius) where {NDIMS}
ELTYPE = eltype(search_radius)
CL = typeof(cell_list)

neighbor_iterator = deepcopy(cell_list)

cell_size = ntuple(_ -> search_radius, Val(NDIMS))

new{NDIMS, CL, ELTYPE}(neighbor_iterator, cell_list, search_radius, nothing, cell_size)
return FaceNeighborhoodSearch(neighbor_iterator, cell_list, search_radius, nothing,
cell_size)
end

@inline Base.ndims(::FaceNeighborhoodSearch{NDIMS}) where {NDIMS} = NDIMS
Expand Down

0 comments on commit 4f701da

Please sign in to comment.