A class for doing link cells. More...
#include <LinkCells.h>
Public Member Functions | |
LinkCells (Communicator &comm) | |
void | setCutoff (const double &lcut) |
Set the value of the cutoff. More... | |
void | buildCellLists (const std::vector< Vector > &pos, const std::vector< unsigned > &indices, const Pbc &pbc) |
Build the link cell lists. More... | |
void | retrieveNeighboringAtoms (const Vector &pos, unsigned &natomsper, std::vector< unsigned > &atoms) |
Find a list of relevant atoms. More... | |
Private Member Functions | |
std::vector< unsigned > | findMyCell (const Vector &pos) const |
Find the cell in which this position is contained. More... | |
unsigned | findCell (const Vector &pos) const |
Find the cell in which this position is contained. More... | |
Private Attributes | |
Communicator & | comm |
Symbolic link to plumed communicator. More... | |
bool | cutoffwasset |
Check that the link cells were set up correctly. More... | |
double | link_cutoff |
The cutoff to use for the sizes of the cells. More... | |
Pbc | mypbc |
The pbc we are using for link cells. More... | |
std::vector< unsigned > | ncells |
The number of cells in each direction. More... | |
std::vector< unsigned > | nstride |
The number of cells to stride through to get the link cells. More... | |
std::vector< unsigned > | allcells |
The list of cells each atom is inside. More... | |
std::vector< unsigned > | lcell_starts |
The start of each block corresponding to each link cell. More... | |
std::vector< unsigned > | lcell_tots |
The number of atoms in each link cell. More... | |
std::vector< unsigned > | lcell_lists |
The atoms ordered by link cells. More... | |
A class for doing link cells.
PLMD::LinkCells::LinkCells | ( | Communicator & | comm | ) |
void PLMD::LinkCells::buildCellLists | ( | const std::vector< Vector > & | pos, |
const std::vector< unsigned > & | indices, | ||
const Pbc & | pbc | ||
) |
Build the link cell lists.
|
private |
Find the cell in which this position is contained.
|
private |
Find the cell in which this position is contained.
void PLMD::LinkCells::retrieveNeighboringAtoms | ( | const Vector & | pos, |
unsigned & | natomsper, | ||
std::vector< unsigned > & | atoms | ||
) |
Find a list of relevant atoms.
void PLMD::LinkCells::setCutoff | ( | const double & | lcut | ) |
Set the value of the cutoff.
|
private |
The list of cells each atom is inside.
|
private |
Symbolic link to plumed communicator.
|
private |
Check that the link cells were set up correctly.
|
private |
The atoms ordered by link cells.
|
private |
The start of each block corresponding to each link cell.
|
private |
The number of atoms in each link cell.
|
private |
The cutoff to use for the sizes of the cells.
|
private |
The pbc we are using for link cells.
|
private |
The number of cells in each direction.
|
private |
The number of cells to stride through to get the link cells.
Hosted by GitHub | 1.8.7 |