ls1-MarDyn
ls1-MarDyn molecular dynamics code
Public Types | Public Member Functions | Friends | List of all members
TraversalTuner< CellTemplate > Class Template Reference

Public Types

enum  traversalNames {
  ORIGINAL = 0 , C08 = 1 , C04 = 2 , SLICED = 3 ,
  HS = 4 , MP = 5 , C08ES = 6 , NT = 7 ,
  QSCHED = 8
}
 

Public Member Functions

void findOptimalTraversal ()
 
void readXML (XMLfileUnits &xmlconfig)
 
void rebuild (std::vector< CellTemplate > &cells, const std::array< unsigned long, 3 > &dims, double cellLength[3], double cutoff)
 
void traverseCellPairs (CellProcessor &cellProcessor)
 
void traverseCellPairs (traversalNames name, CellProcessor &cellProcessor)
 
void traverseCellPairsOuter (CellProcessor &cellProcessor)
 
void traverseCellPairsInner (CellProcessor &cellProcessor, unsigned stage, unsigned stageCount)
 
bool isTraversalApplicable (traversalNames name, const std::array< unsigned long, 3 > &dims) const
 
traversalNames getSelectedTraversal () const
 
CellPairTraversals< ParticleCell > * getCurrentOptimalTraversal ()
 

Friends

class LinkedCellsTest
 

Member Function Documentation

◆ rebuild()

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

Rebuild the traversals.

Parameters
cellsThe vector of cells.
dimsThe dimensions (cells per dimension, including halo!)
cellLengthThe length of the cells.
cutoffThe cutoff radius.

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