Skip to content

Commit

Permalink
Remove unused distances arg in Nearest dispatchQueryImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed Dec 30, 2023
1 parent 5c57c64 commit 44b1e35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/details/ArborX_DetailsDistributedTreeImpl.hpp
Expand Up @@ -51,8 +51,7 @@ struct DistributedTreeImpl
Kokkos::is_view<Ranks>{} && Kokkos::is_view<Distances>{}>
queryDispatchImpl(NearestPredicateTag, DistributedTree const &tree,
ExecutionSpace const &space, Predicates const &queries,
Indices &indices, Offset &offset, Ranks &ranks,
Distances *distances_ptr = nullptr);
Indices &indices, Offset &offset, Ranks &ranks);

template <typename DistributedTree, typename ExecutionSpace,
typename Predicates, typename IndicesAndRanks, typename Offset>
Expand Down
4 changes: 1 addition & 3 deletions src/details/ArborX_DetailsDistributedTreeNearest.hpp
Expand Up @@ -281,7 +281,7 @@ DistributedTreeImpl::queryDispatchImpl(NearestPredicateTag, Tree const &tree,
ExecutionSpace const &space,
Predicates const &queries,
Indices &indices, Offset &offset,
Ranks &ranks, Distances *distances_ptr)
Ranks &ranks)
{
Kokkos::Profiling::ScopedRegion guard(
"ArborX::DistributedTree::query::nearest");
Expand All @@ -293,8 +293,6 @@ DistributedTreeImpl::queryDispatchImpl(NearestPredicateTag, Tree const &tree,
auto comm = tree.getComm();

Distances distances("ArborX::DistributedTree::query::nearest::distances", 0);
if (distances_ptr)
distances = *distances_ptr;

// "Strategy" is used to determine what ranks to forward queries to. In
// the 1st pass, the queries are sent to as many ranks as necessary to
Expand Down

0 comments on commit 44b1e35

Please sign in to comment.