33template <
class ParticleCell,
class PairwiseFunctor>
47 double interactionLength,
const std::array<double, 3> &cellLength,
48 DataLayoutOption dataLayout,
bool useNewton3)
50 dataLayout, useNewton3, true),
52 dataLayout, useNewton3) {}
56 [[nodiscard]] TraversalOption
getTraversalType()
const override {
return TraversalOption::lc_sliced; }
61 void setSortingThreshold(
size_t sortingThreshold)
override { _cellHandler.setSortingThreshold(sortingThreshold); }
67template <
class ParticleCell,
class PairwiseFunctor>
69 auto &cells = *(this->_cells);
70 this->slicedTraversal([&](
unsigned long x,
unsigned long y,
unsigned long z) {
72 _cellHandler.processBaseCell(cells,
id);
std::array< unsigned long, 3 > _cellsPerDimension
The dimensions of the cellblock.
Definition: CellTraversal.h:55
This class provides the base for traversals using the c08 base step.
Definition: LCC08CellHandler.h:28
This class provides the (locked) sliced traversal.
Definition: LCSlicedTraversal.h:34
void setSortingThreshold(size_t sortingThreshold) override
Set the sorting-threshold for traversals that use the CellFunctor If the sum of the number of particl...
Definition: LCSlicedTraversal.h:61
void traverseParticles() override
Traverse the particles by pairs, triplets etc.
Definition: LCSlicedTraversal.h:68
TraversalOption getTraversalType() const override
Return a enum representing the name of the traversal class.
Definition: LCSlicedTraversal.h:56
LCSlicedTraversal(const std::array< unsigned long, 3 > &dims, PairwiseFunctor *pairwiseFunctor, double interactionLength, const std::array< double, 3 > &cellLength, DataLayoutOption dataLayout, bool useNewton3)
Constructor of the sliced traversal.
Definition: LCSlicedTraversal.h:46
Interface for traversals used by the LinkedCell class.
Definition: LCTraversalInterface.h:18
PairwiseFunctor class.
Definition: PairwiseFunctor.h:31
Class for Cells of Particles.
Definition: ParticleCell.h:51
std::array< unsigned long, 3 > _overlap
Overlap of interacting cells.
Definition: SlicedBasedTraversal.h:142
This class provides the sliced traversal.
Definition: SlicedLockBasedTraversal.h:32
constexpr T threeToOneD(T x, T y, T z, const std::array< T, 3 > &dims)
Convert a 3d index to a 1d index.
Definition: ThreeDimensionalMapping.h:29
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32