Skip to content

Commit

Permalink
fixup: ArborX typedef and doxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Jan 4, 2024
1 parent 765f329 commit 12fac0b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions core/src/Cabana_Experimental_NeighborList.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,23 @@ template <typename Slice>
struct AccessTraits<Cabana::Experimental::Impl::SubsliceAndRadius<Slice>,
PredicatesTag>
{
using Self = Cabana::Experimental::Impl::SubsliceAndRadius<Slice>;
//! Slice wrapper with partial range and radius information.
using SliceLike = Cabana::Experimental::Impl::SubsliceAndRadius<Slice>;
//! Kokkos memory space.
using memory_space = typename Self::memory_space;
using memory_space = typename SliceLike::memory_space;
//! Size type.
using size_type = typename Self::size_type;
using size_type = typename SliceLike::size_type;
//! Get number of particles.
static KOKKOS_FUNCTION size_type size( Self const& x )
static KOKKOS_FUNCTION size_type size( SliceLike const& x )
{
return x.last - x.first;
}
//! Get the particle at the index.
static KOKKOS_FUNCTION auto get( Self const& x, size_type i )
static KOKKOS_FUNCTION auto get( SliceLike const& x, size_type i )
{
assert( i < size( x ) );
auto const point =
AccessTraits<typename Self::slice_type, PrimitivesTag>::get(
AccessTraits<typename SliceLike::slice_type, PrimitivesTag>::get(
x.slice, x.first + i );
return attach( intersects( Sphere{ point, x.radius } ), (int)i );
}
Expand Down

0 comments on commit 12fac0b

Please sign in to comment.