Skip to content

Commit

Permalink
Test both backends
Browse files Browse the repository at this point in the history
  • Loading branch information
efaulhaber committed Jun 11, 2024
1 parent eb23383 commit ce9153f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/neighborhood_search.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,16 @@
NeighborListsNeighborhoodSearch{NDIMS}(search_radius, n_particles,
periodic_box_min_corner = periodic_boxes[i][1],
periodic_box_max_corner = periodic_boxes[i][2]),
NeighborListsNeighborhoodSearch{NDIMS}(search_radius, n_particles,
periodic_box_min_corner = periodic_boxes[i][1],
periodic_box_max_corner = periodic_boxes[i][2],
backend=Vector{Vector{Int32}}),
]
neighborhood_searches_names = [
"`TrivialNeighborhoodSearch`",
"`GridNeighborhoodSearch`",
"`NeighborListsNeighborhoodSearch`",
"`NeighborListsNeighborhoodSearch` with `Vector{Vector}` backend",
]

# Run this for every neighborhood search
Expand Down Expand Up @@ -119,11 +124,14 @@
neighborhood_searches = [
GridNeighborhoodSearch{NDIMS}(search_radius, n_particles),
NeighborListsNeighborhoodSearch{NDIMS}(search_radius, n_particles),
NeighborListsNeighborhoodSearch{NDIMS}(search_radius, n_particles,
backend=Vector{Vector{Int32}}),
]

neighborhood_searches_names = [
"`GridNeighborhoodSearch`",
"`NeighborListsNeighborhoodSearch`",
"`NeighborListsNeighborhoodSearch` with `Vector{Vector}` backend",
]

@testset "$(neighborhood_searches_names[i])" for i in eachindex(neighborhood_searches_names)
Expand Down

0 comments on commit ce9153f

Please sign in to comment.