27template <
class ParticleCell,
class PairwiseFunctor>
41 double interactionLength,
const std::array<double, 3> &cellLength,
42 DataLayoutOption dataLayout,
bool useNewton3)
44 dataLayout, useNewton3),
47 dataLayout, useNewton3) {}
51 [[nodiscard]] TraversalOption
getTraversalType()
const override {
return TraversalOption::lc_c08; }
62 void setSortingThreshold(
size_t sortingThreshold)
override { _cellHandler.setSortingThreshold(sortingThreshold); }
68template <
class ParticleCell,
class PairwiseFunctor>
70 auto &cells = *(this->_cells);
71 this->c08Traversal([&](
unsigned long x,
unsigned long y,
unsigned long z) {
73 _cellHandler.processBaseCell(cells, baseIndex);
This class provides the base for traversals using the c08 base step.
Definition: C08BasedTraversal.h:24
std::array< unsigned long, 3 > _cellsPerDimension
The dimensions of the cellblock.
Definition: CellTraversal.h:55
std::array< unsigned long, 3 > _overlap
overlap of interacting cells.
Definition: ColorBasedTraversal.h:121
This class provides the base for traversals using the c08 base step.
Definition: LCC08CellHandler.h:28
This class provides the lc_c08 traversal.
Definition: LCC08Traversal.h:28
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: LCC08Traversal.h:62
TraversalOption getTraversalType() const override
Return a enum representing the name of the traversal class.
Definition: LCC08Traversal.h:51
LCC08Traversal(const std::array< unsigned long, 3 > &dims, PairwiseFunctor *pairwiseFunctor, double interactionLength, const std::array< double, 3 > &cellLength, DataLayoutOption dataLayout, bool useNewton3)
Constructor of the lc_c08 traversal.
Definition: LCC08Traversal.h:40
void traverseParticles() override
Traverse the particles by pairs, triplets etc.
Definition: LCC08Traversal.h:69
bool isApplicable() const override
C08 traversals are always usable.
Definition: LCC08Traversal.h:57
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
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