Skip to content

Commit

Permalink
fixup: add dim to ArborX test - no 2d Point
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Oct 11, 2024
1 parent e72aafc commit cd70b7f
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions core/unit_test/tstNeighborListArborX.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
namespace Test
{
//---------------------------------------------------------------------------//
template <std::size_t Dim>
void testArborXListFull()
{
// Create the AoSoA and fill with random particle positions.
NeighborListTestData<3> test_data;
NeighborListTestData<Dim> test_data;
auto position = Cabana::slice<0>( test_data.aosoa );

// Check CSR neighbor lists.
Expand Down Expand Up @@ -84,10 +85,11 @@ void testArborXListFull()
}

//---------------------------------------------------------------------------//
template <std::size_t Dim>
void testArborXListHalf()
{
// Create the AoSoA and fill with random particle positions.
NeighborListTestData<3> test_data;
NeighborListTestData<Dim> test_data;
auto position = Cabana::slice<0>( test_data.aosoa );

// Check CSR neighbor lists.
Expand Down Expand Up @@ -145,10 +147,11 @@ void testArborXListHalf()
}

//---------------------------------------------------------------------------//
template <std::size_t Dim>
void testArborXListFullPartialRange()
{
// Create the AoSoA and fill with random particle positions.
NeighborListTestData<3> test_data;
NeighborListTestData<Dim> test_data;
auto position = Cabana::slice<0>( test_data.aosoa );

{
Expand Down Expand Up @@ -176,10 +179,11 @@ void testArborXListFullPartialRange()
}

//---------------------------------------------------------------------------//
template <std::size_t Dim>
void testNeighborArborXParallelFor()
{
// Create the AoSoA and fill with random particle positions.
NeighborListTestData<3> test_data;
NeighborListTestData<Dim> test_data;
auto position = Cabana::slice<0>( test_data.aosoa );

{
Expand Down Expand Up @@ -235,10 +239,11 @@ void testNeighborArborXParallelFor()
}

//---------------------------------------------------------------------------//
template <std::size_t Dim>
void testNeighborArborXParallelReduce()
{
// Create the AoSoA and fill with random particle positions.
NeighborListTestData<3> test_data;
NeighborListTestData<Dim> test_data;
auto position = Cabana::slice<0>( test_data.aosoa );

{
Expand Down Expand Up @@ -290,19 +295,19 @@ void testNeighborArborXParallelReduce()
//---------------------------------------------------------------------------//
// TESTS
//---------------------------------------------------------------------------//
TEST( ArborXList, Full ) { testArborXListFull(); }
TEST( ArborXList, Full3d ) { testArborXListFull<3>(); }

//---------------------------------------------------------------------------//
TEST( ArborXList, Half ) { testArborXListHalf(); }
TEST( ArborXList, Half3d ) { testArborXListHalf<3>(); }

//---------------------------------------------------------------------------//
TEST( ArborXList, FullRange ) { testArborXListFullPartialRange(); }
TEST( ArborXList, FullRange3d ) { testArborXListFullPartialRange<3>(); }

//---------------------------------------------------------------------------//
TEST( ArborXList, ParallelFor ) { testNeighborArborXParallelFor(); }
TEST( ArborXList, ParallelFor3d ) { testNeighborArborXParallelFor<3>(); }

//---------------------------------------------------------------------------//
TEST( ArborXList, ParallelReduce ) { testNeighborArborXParallelReduce(); }
TEST( ArborXList, ParallelReduce3d ) { testNeighborArborXParallelReduce<3>(); }
//---------------------------------------------------------------------------//

} // end namespace Test

0 comments on commit cd70b7f

Please sign in to comment.