This functor generates lists of particles within interactionLength of each other: can be used internally for Verlet list generation and provides a base for a public-facing externally used version, provided in the applicationLibrary.
More...
|
| | InteractionListGeneratorFunctor (NeighborListAoSType &neighborListsAoS, double interactionLength, bool gatherNewton3Lists) |
| | Constructor.
|
| |
| std::string | getName () override |
| |
| template<class ParticleIterator_T > |
| void | initializeNeighborList (ParticleIterator_T particlesBegin) |
| | Initializes the neighbor list map for the given range of particles: clears any previous contents and inserts an empty neighbor list for every particle.
|
| |
| bool | isRelevantForTuning () override |
| | Whether particle is relevant for tuning.
|
| |
| bool | allowsNewton3 () override |
| | Whether InteractionListGeneratorFunctor allows Newton3.
|
| |
| bool | allowsNonNewton3 () override |
| | Whether InteractionListGeneratorFunctor allows non-newton3.
|
| |
| void | AoSFunctor (Particle_T &i, Particle_T &j, bool newton3) override |
| | AoSFunctor for interaction list generation.
|
| |
| void | SoAFunctorSingle (SoAView< SoAArraysType > soa, bool) override |
| | SoAFunctor for verlet list generation.
|
| |
| void | SoAFunctorPair (SoAView< SoAArraysType > soa1, SoAView< SoAArraysType > soa2, bool newton3) override |
| | SoAFunctor for the verlet list generation.
|
| |
| void | SoAFunctorVerlet (SoAView< SoAArraysType > soa, const size_t indexFirst, const std::vector< size_t, AlignedAllocator< size_t > > &verletList, bool newton3) override |
| | SoAFunctorVerlet for interaction list generation.
|
| |
| | PairwiseFunctor (double cutoff) |
| | Constructor.
|
| |
| virtual void | AoSFunctor (Particle_T &i, Particle_T &j, bool newton3) |
| | PairwiseFunctor for arrays of structures (AoS).
|
| |
| virtual void | SoAFunctorSingle (SoAView< SoAArraysType > soa, bool newton3) |
| | PairwiseFunctor for structure of arrays (SoA)
|
| |
| virtual void | SoAFunctorVerlet (SoAView< SoAArraysType > soa, const size_t indexFirst, const std::vector< size_t, AlignedAllocator< size_t > > &neighborList, bool newton3) |
| | PairwiseFunctor for structure of arrays (SoA) for neighbor lists.
|
| |
| virtual void | SoAFunctorPair (SoAView< SoAArraysType > soa1, SoAView< SoAArraysType > soa2, bool newton3) |
| | PairwiseFunctor for structure of arrays (SoA)
|
| |
| virtual void | SoAFunctorPairSorted (SoAView< SoAArraysType > soa1, SoAView< SoAArraysType > soa2, const SoASortingData &sortingData, bool newton3) |
| | SoAFunctorPair on pre-sorted, pre-packed SoA views.
|
| |
| bool | isVecPatternAllowed (const VectorizationPatternOption::Value vecPattern) override |
| | Specifies whether the functor is capable of using the specified Vectorization Pattern in the SoA functor.
|
| |
| | Functor (double cutoff) |
| | Constructor.
|
| |
| virtual void | initTraversal () |
| | This function is called at the start of each traversal.
|
| |
| virtual void | endTraversal (bool newton3) |
| | This function is called at the end of each traversal.
|
| |
| template<class ParticleCell > |
| void | SoALoader (ParticleCell &cell, SoA< SoAArraysType > &soa, size_t offset, bool skipSoAResize) |
| | Copies the AoS data of the given cell in the given soa.
|
| |
| template<typename ParticleCell > |
| void | SoAExtractor (ParticleCell &cell, SoA< SoAArraysType > &soa, size_t offset) |
| | Copies the data stored in the soa back into the cell.
|
| |
| virtual bool | allowsNewton3 ()=0 |
| | Specifies whether the functor is capable of Newton3-like functors.
|
| |
| virtual bool | allowsNonNewton3 ()=0 |
| | Specifies whether the functor is capable of non-Newton3-like functors.
|
| |
| virtual bool | isVecPatternAllowed (const VectorizationPatternOption::Value vecPattern)=0 |
| | Specifies whether the functor is capable of using the specified Vectorization Pattern in the SoA functor.
|
| |
| virtual bool | isRelevantForTuning ()=0 |
| | Specifies whether the functor should be considered for the auto-tuning process.
|
| |
| virtual std::string | getName ()=0 |
| | Returns name of functor.
|
| |
| double | getCutoff () const |
| | Getter for the functor's cutoff.
|
| |
| virtual void | setVecPattern (const VectorizationPatternOption::Value vecPattern) |
| | Setter for the vectorization pattern to be used.
|
| |
| virtual size_t | getNumFLOPs () const |
| | Get the number of FLOPs.
|
| |
| virtual double | getHitRate () const |
| | Get the hit rate.
|
| |
|
| static constexpr std::array< typename Particle_T::AttributeNames, 5 > | getNeededAttr () |
| | Get attributes needed for computation.
|
| |
| static constexpr std::array< typename Particle_T::AttributeNames, 5 > | getNeededAttr (std::false_type) |
| | Get attributes needed for computation without N3 optimization.
|
| |
| static constexpr std::array< typename Particle_T::AttributeNames, 0 > | getComputedAttr () |
| | Get attributes computed by this functor.
|
| |
| static constexpr std::array< typename Particle_T::AttributeNames, 0 > | getNeededAttr () |
| | Get attributes needed for computation.
|
| |
| static constexpr std::array< typename Particle_T::AttributeNames, 0 > | getNeededAttr (std::false_type) |
| | Get attributes needed for computation without N3 optimization.
|
| |
| static constexpr std::array< typename Particle_T::AttributeNames, 0 > | getComputedAttr () |
| | Get attributes computed by this functor.
|
| |
template<class Particle_T, bool isInternal = false>
class autopas::InteractionListGeneratorFunctor< Particle_T, isInternal >
This functor generates lists of particles within interactionLength of each other: can be used internally for Verlet list generation and provides a base for a public-facing externally used version, provided in the applicationLibrary.
After applying AutoPas's computeInteractions function with this functor, a std::unordered_map<Particle_T *, std::vector<Particle_T *>> is filled, mapping from each particle pointer to a vector of pointers to all particles within interactionLength of the first.
- Template Parameters
-
| Particle_T | The type of Particle class used. |
| isInternal | Should be set true if used internally within AutoPas. Makes the functor irrelevant for tuning. |
template<class Particle_T , bool isInternal = false>
template<class ParticleIterator_T >
Initializes the neighbor list map for the given range of particles: clears any previous contents and inserts an empty neighbor list for every particle.
This must happen before the functor is applied, and it must also happen after any particle rearrangement in memory. AutoPas's computeInteractions() calls this automatically when this functor (or a child of it) is used, so the handling of the list is safe when used with computeInteractions.
- Template Parameters
-
| ParticleIterator_T | Type of the particle iterator |
- Parameters
-
| particlesBegin | Iterator to the first particle. Iterated until no longer valid. |