Skip to content

Commit

Permalink
fixup: propagate dimension in createLinkedCellList
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed May 20, 2024
1 parent a669113 commit f481b33
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/src/Cabana_LinkedCellList.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,8 @@ auto createLinkedCellList( SliceType positions,
const Scalar grid_max[NumSpaceDim] )
{
using memory_space = typename SliceType::memory_space;
return LinkedCellList<memory_space, Scalar>( positions, grid_delta,
grid_min, grid_max );
return LinkedCellList<memory_space, Scalar, NumSpaceDim>(
positions, grid_delta, grid_min, grid_max );
}

/*!
Expand All @@ -753,7 +753,7 @@ auto createLinkedCellList( SliceType positions, const std::size_t begin,
const Scalar grid_max[NumSpaceDim] )
{
using memory_space = typename SliceType::memory_space;
return LinkedCellList<memory_space, Scalar>(
return LinkedCellList<memory_space, Scalar, NumSpaceDim>(
positions, begin, end, grid_delta, grid_min, grid_max );
}

Expand All @@ -771,7 +771,7 @@ auto createLinkedCellList( SliceType positions,
const Scalar cell_size_ratio = 1.0 )
{
using memory_space = typename SliceType::memory_space;
return LinkedCellList<memory_space, Scalar>(
return LinkedCellList<memory_space, Scalar, NumSpaceDim>(
positions, grid_delta, grid_min, grid_max, neighborhood_radius,
cell_size_ratio );
}
Expand All @@ -791,7 +791,7 @@ auto createLinkedCellList( SliceType positions, const std::size_t begin,
const Scalar cell_size_ratio = 1.0 )
{
using memory_space = typename SliceType::memory_space;
return LinkedCellList<memory_space, Scalar>(
return LinkedCellList<memory_space, Scalar, NumSpaceDim>(
positions, begin, end, grid_delta, grid_min, grid_max,
neighborhood_radius, cell_size_ratio );
}
Expand Down

0 comments on commit f481b33

Please sign in to comment.