30template <
class ParticleCell,
class PairwiseFunctor,
class NeighborList>
46 double interactionLength,
const std::array<double, 3> &cellLength,
47 DataLayoutOption dataLayout,
bool useNewton3, ContainerOption::Value typeOfList)
49 dataLayout, useNewton3, false),
51 _functor(pairwiseFunctor) {}
57 case (ContainerOption::verletListsCells):
58 return TraversalOption::vlc_sliced_c02;
59 case (ContainerOption::pairwiseVerletLists):
60 return TraversalOption::vlp_sliced_c02;
66 return TraversalOption();
83template <
class ParticleCell,
class PairwiseFunctor,
class NeighborList>
85 if (this->_dataLayout == DataLayoutOption::soa) {
86 this->loadSoA(_functor, *(this->_verletList));
89 this->cSlicedTraversal([&](
unsigned long x,
unsigned long y,
unsigned long z) {
91 this->
template processCellLists<PairwiseFunctor>(*(this->_verletList), baseIndex, _functor, this->_dataLayout,
95 if (this->_dataLayout == DataLayoutOption::soa) {
96 this->extractSoA(_functor, *(this->_verletList));
PairwiseFunctor class.
Definition: PairwiseFunctor.h:31
Class for Cells of Particles.
Definition: ParticleCell.h:49
This class provides the colored sliced traversal.
Definition: SlicedC02BasedTraversal.h:33
DataLayoutOption _dataLayout
The datalayout used by this traversal.
Definition: TraversalInterface.h:75
This class provides the colored sliced traversal.
Definition: VLCSlicedC02Traversal.h:32
TraversalOption getTraversalType() const override
Return a enum representing the name of the traversal class.
Definition: VLCSlicedC02Traversal.h:55
VLCSlicedC02Traversal(const std::array< unsigned long, 3 > &dims, PairwiseFunctor *pairwiseFunctor, double interactionLength, const std::array< double, 3 > &cellLength, DataLayoutOption dataLayout, bool useNewton3, ContainerOption::Value typeOfList)
Constructor of the colored sliced traversal.
Definition: VLCSlicedC02Traversal.h:45
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: VLCSlicedC02Traversal.h:77
void traverseParticles() override
Traverse the particles by pairs, triplets etc.
Definition: VLCSlicedC02Traversal.h:84
bool isApplicable() const override
Checks if the traversal is applicable to the current state of the domain.
Definition: VLCSlicedC02Traversal.h:69
This class provides the Traversal Interface for the verlet lists cells container.
Definition: VLCTraversalInterface.h:38
ContainerOption _typeOfList
The type of neighbor list as an enum value.
Definition: VLCTraversalInterface.h:108
static void exception(const Exception e)
Handle an exception derived by std::exception.
Definition: ExceptionHandler.h:63
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