27template <
class ParticleCell,
class PairwiseFunctor,
class NeighborList>
43 const double interactionLength,
const std::array<double, 3> &cellLength,
44 DataLayoutOption dataLayout,
bool useNewton3, ContainerOption::Value typeOfList)
46 dataLayout, useNewton3),
48 _functor(pairwiseFunctor) {}
54 case (ContainerOption::verletListsCells):
55 return TraversalOption::vlc_c18;
56 case (ContainerOption::pairwiseVerletLists):
57 return TraversalOption::vlp_c18;
63 return TraversalOption();
80template <
class ParticleCell,
class PairwiseFunctor,
class NeighborList>
82 if (this->_dataLayout == DataLayoutOption::soa) {
83 this->loadSoA(_functor, *(this->_verletList));
86 this->
template c18Traversal<
true>([&](
unsigned long x,
unsigned long y,
unsigned long z) {
88 this->
template processCellLists<PairwiseFunctor>(*(this->_verletList), baseIndex, _functor, this->_dataLayout,
92 if (this->_dataLayout == DataLayoutOption::soa) {
93 this->extractSoA(_functor, *(this->_verletList));
This class provides the base for traversals using the c18 base step.
Definition: C18BasedTraversal.h:23
PairwiseFunctor class.
Definition: PairwiseFunctor.h:31
Class for Cells of Particles.
Definition: ParticleCell.h:51
DataLayoutOption _dataLayout
The datalayout used by this traversal.
Definition: TraversalInterface.h:75
This class provides the lc_c18 traversal.
Definition: VLCC18Traversal.h:29
VLCC18Traversal(const std::array< unsigned long, 3 > &dims, PairwiseFunctor *pairwiseFunctor, const double interactionLength, const std::array< double, 3 > &cellLength, DataLayoutOption dataLayout, bool useNewton3, ContainerOption::Value typeOfList)
Constructor of the lc_c18 traversal.
Definition: VLCC18Traversal.h:42
bool isApplicable() const override
Checks if the traversal is applicable to the current state of the domain.
Definition: VLCC18Traversal.h:66
TraversalOption getTraversalType() const override
Return a enum representing the name of the traversal class.
Definition: VLCC18Traversal.h:52
void traverseParticles() override
Traverse the particles by pairs, triplets etc.
Definition: VLCC18Traversal.h:81
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: VLCC18Traversal.h:74
This class provides the Traversal Interface for the verlet lists cells container.
Definition: VLCTraversalInterface.h:27
ContainerOption _typeOfList
The type of neighbor list as an enum value.
Definition: VLCTraversalInterface.h:97
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