Skip to content

Commit

Permalink
fixup: use createVerletList
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Oct 11, 2024
1 parent fbc5c3b commit e72aafc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions core/src/Cabana_VerletList.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,8 @@ class VerletList
//---------------------------------------------------------------------------//
// VerletList creation functions.
//---------------------------------------------------------------------------//
template <class PositionType, class MinArrayType, class MaxArrayType,
class AlgorithmTag, class LayoutTag, class BuildTag = TeamVectorOpTag>
template <class AlgorithmTag, class LayoutTag, class BuildTag,
class PositionType, class MinArrayType, class MaxArrayType>
auto createVerletList( PositionType positions, const std::size_t begin,
const std::size_t end,
const typename PositionType::value_type radius,
Expand All @@ -922,8 +922,8 @@ auto createVerletList( PositionType positions, const std::size_t begin,
grid_max, max_neigh );
}

template <class PositionType, class MinArrayType, class MaxArrayType,
class AlgorithmTag, class LayoutTag, class BuildTag = TeamVectorOpTag>
template <class AlgorithmTag, class LayoutTag, class BuildTag,
class PositionType, class MinArrayType, class MaxArrayType>
auto createVerletList( PositionType positions,
const typename PositionType::value_type radius,
const typename PositionType::value_type cell_size_ratio,
Expand Down
9 changes: 4 additions & 5 deletions core/unit_test/tstNeighborList.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,10 @@ void testNeighborParallelFor()
auto position = Cabana::slice<0>( test_data.aosoa );

// Create the neighbor list.
using ListType = Cabana::VerletList<TEST_MEMSPACE, Cabana::FullNeighborTag,
LayoutTag, Cabana::TeamOpTag, Dim>;
ListType nlist( position, 0, position.size(), test_data.test_radius,
test_data.cell_size_ratio, test_data.grid_min,
test_data.grid_max );
auto nlist = Cabana::createVerletList<Cabana::FullNeighborTag, LayoutTag,
Cabana::TeamOpTag>(
position, 0, position.size(), test_data.test_radius,
test_data.cell_size_ratio, test_data.grid_min, test_data.grid_max );

checkFirstNeighborParallelForLambda( nlist, test_data.N2_list_copy,
test_data.num_particle );
Expand Down

0 comments on commit e72aafc

Please sign in to comment.