Skip to content

Commit

Permalink
[ci skip] Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed May 3, 2024
1 parent bc6f62e commit 2ab6bdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/details/ArborX_DetailsDistributedTreeNearest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ void DistributedTreeImpl::phaseI(ExecutionSpace const &space, Tree const &tree,

// Accumulate total leave count in the local trees until it reaches k which
// is the number of neighbors queried for. Stop if local trees get
// empty because it means that they are no more leaves and there is no point
// on forwarding predicates to leafless trees.
// empty because it means that there are no more leaves and there is no point
// in forwarding predicates to leafless trees.
auto const n_predicates = predicates.size();
auto const &bottom_tree_sizes = tree._bottom_tree_sizes;
Kokkos::View<int *, MemorySpace> new_offset(
Expand Down
3 changes: 2 additions & 1 deletion src/details/ArborX_DetailsDistributedTreeUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ void sortResultsByKey(ExecutionSpace const &space, View keys,
std::is_arithmetic_v<typename ViewType::value_type>)
{
// If there's only one 1D view to process, we can avoid computing the
// permutation.
// permutation. We also avoid 1D views with non-arithmetic types as we
// can't guarantee they provide comparison operator.
KokkosExt::sortByKey(space, keys, other_views...);
}
else
Expand Down

0 comments on commit 2ab6bdb

Please sign in to comment.