Policy for managing neighbor lists using the Compressed-Row-Storage (CRS) format.
More...
#include <VerletListHelpers.h>
|
| | 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.
|
| |
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.
◆ 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
-
| neighborLists | temporary neighbor list vectors |
| particleToIndex | map to connect particle pointers to their dense SoA indices |
◆ add()
template<class Particle_T >
Adds particle j to the neighbor list of particle i.
- Parameters
-
| i | the first particle |
| j | the neighbor particle |
The documentation for this class was generated from the following file: