ls1-MarDyn
ls1-MarDyn molecular dynamics code
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
OriginalCellPairTraversal< CellTemplate > Class Template Reference
Inheritance diagram for OriginalCellPairTraversal< CellTemplate >:
CellPairTraversals< CellTemplate > HalfShellTraversal< CellTemplate >

Public Member Functions

 OriginalCellPairTraversal (std::vector< CellTemplate > &cells, const std::array< unsigned long, 3 > &dims)
 
virtual void rebuild (std::vector< CellTemplate > &cells, const std::array< unsigned long, 3 > &dims, double cellLength[3], double cutoff, struct CellPairTraversalData *data)
 
void traverseCellPairs (CellProcessor &cellProcessor)
 
void traverseCellPairsOuter (CellProcessor &cellProcessor)
 
void traverseCellPairsInner (CellProcessor &cellProcessor, unsigned stage, unsigned stageCount)
 
virtual void processBaseCell (CellProcessor &cellProcessor, unsigned long cellIndex) const
 
- Public Member Functions inherited from CellPairTraversals< CellTemplate >
 CellPairTraversals (std::vector< CellTemplate > &cells, const std::array< unsigned long, 3 > &dims)
 
virtual bool requiresForceExchange () const
 
virtual unsigned maxCellsInCutoff () const
 

Protected Types

enum  TraverseType { ALL_CELLS , INNER_CELLS , OUTER_CELLS }
 

Protected Member Functions

void computeNeighbourOffsets ()
 
void traverseCellPairsBackend (CellProcessor &cellProcessor, unsigned loIndex, unsigned hiIndex, TraverseType type) const
 

Protected Attributes

std::array< long, 13 > _forwardNeighbourOffsets
 Neighbours that come in the total ordering after a cell.
 
std::array< long, 13 > _backwardNeighbourOffsets
 Neighbours that come in the total ordering before a cell.
 
std::vector< unsigned long > _innerMostCellIndices
 Vector containing the indices (for the cells vector) of all inner cells (without boundary)
 
- Protected Attributes inherited from CellPairTraversals< CellTemplate >
std::vector< CellTemplate > * _cells
 
std::array< unsigned long, 3 > _dims
 

Member Function Documentation

◆ rebuild()

template<class CellTemplate >
void OriginalCellPairTraversal< CellTemplate >::rebuild ( std::vector< CellTemplate > &  cells,
const std::array< unsigned long, 3 > &  dims,
double  cellLength[3],
double  cutoff,
struct CellPairTraversalData data 
)
virtual

Reset all necessary data without reallocation.

Reimplemented from CellPairTraversals< CellTemplate >.

◆ traverseCellPairs()

template<class CellTemplate >
void OriginalCellPairTraversal< CellTemplate >::traverseCellPairs ( CellProcessor cellProcessor)
inlinevirtual

◆ traverseCellPairsInner()

template<class CellTemplate >
void OriginalCellPairTraversal< CellTemplate >::traverseCellPairsInner ( CellProcessor cellProcessor,
unsigned  stage,
unsigned  stageCount 
)
inlinevirtual

◆ traverseCellPairsOuter()

template<class CellTemplate >
void OriginalCellPairTraversal< CellTemplate >::traverseCellPairsOuter ( CellProcessor cellProcessor)
inlinevirtual

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