AutoPas  3.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
autopas::VerletListHelpers< Particle_T >::CRSNeighborListPolicy Class Reference

Policy for managing neighbor lists using the Compressed-Row-Storage (CRS) format. More...

#include <VerletListHelpers.h>

Public Member Functions

 CRSNeighborListPolicy (std::vector< std::vector< size_t > > &neighborLists, std::unordered_map< const Particle_T *, size_t > &particleToIndex)
 Constructor.
 
void add (Particle_T *i, Particle_T *j)
 Adds particle j to the neighbor list of particle i.
 

Detailed Description

template<class Particle_T>
class autopas::VerletListHelpers< Particle_T >::CRSNeighborListPolicy

Policy for managing neighbor lists using the Compressed-Row-Storage (CRS) format.

The neighbor lists are "temporary" neighbor lists that get compressed to CRS neighbor lists afterward. This policy is required by the InteractionListGeneratorFunctor.

Constructor & Destructor Documentation

◆ CRSNeighborListPolicy()

template<class Particle_T >
autopas::VerletListHelpers< Particle_T >::CRSNeighborListPolicy::CRSNeighborListPolicy ( std::vector< std::vector< size_t > > &  neighborLists,
std::unordered_map< const Particle_T *, size_t > &  particleToIndex 
)
inline

Constructor.

Parameters
neighborListstemporary neighbor list vectors
particleToIndexmap to connect particle pointers to their dense SoA indices

Member Function Documentation

◆ add()

template<class Particle_T >
void autopas::VerletListHelpers< Particle_T >::CRSNeighborListPolicy::add ( Particle_T *  i,
Particle_T *  j 
)
inline

Adds particle j to the neighbor list of particle i.

Parameters
ithe first particle
jthe neighbor particle

The documentation for this class was generated from the following file: