1 #ifndef DDMD_PAIR_LIST_H 2 #define DDMD_PAIR_LIST_H 12 #include <util/containers/GArray.h> 13 #include <util/misc/Setable.h> 45 static const int NullIndex = -1;
69 void allocate(
int atomCapacity,
int pairCapacity,
double cutoff);
82 void build(
CellList& cellList,
bool reverseUpdateFlag =
false);
108 int pairCapacity()
const;
113 int atomCapacity()
const;
118 bool isAllocated()
const;
130 virtual void computeStatistics(MPI::Intracomm& communicator);
132 virtual void computeStatistics();
138 void clearStatistics();
147 void outputStatistics(std::ostream& out);
154 int maxNAtom()
const;
161 int maxNPair()
const;
166 int buildCounter()
const;
256 {
return atom1Ptrs_.size(); }
262 {
return atom2Ptrs_.size(); }
268 {
return pairCapacity_; }
274 {
return atomCapacity_; }
280 {
return maxNAtom_.value(); }
286 {
return maxNPair_.value(); }
292 {
return buildCounter_; }
298 {
return isAllocated_; }
A cell list used only to identify nearby atom pairs.
An automatically growable array, analogous to a std::vector.
int atomCapacity() const
Get the maximum number of primary atoms.
int maxNAtom() const
Get the maximum number of primary atoms encountered thus far.
A Verlet nonbonded pair list.
int nPair() const
Get the number of pairs in the PairList.
int maxNPair() const
Get the maximum number of pairs encountered thus far.
File containing preprocessor macros for error handling.
Parallel domain decomposition (DD) MD simulation.
Utility classes for scientific computation.
int buildCounter() const
Return number of times the PairList has been built thus far.
Iterator for pairs in a PairList.
bool isAllocated() const
Has memory been allocated for this PairList?
int pairCapacity() const
Get the maximum number of pairs.
int nAtom() const
Get the number of primary atoms in the PairList.