#include <gromacs/mdlib/updategroupscog.h>
Class for managing and computing centers of geometry of update groups.
Constructor.
The temperature is used for computing the maximum update group radius.
- Parameters
-
[in] | mtop | The global topology |
[in] | updateGroupingsPerMoleculeType | List of update groups for each molecule type in mtop |
[in] | temperature | The maximum reference temperature, pass -1 when unknown or not applicable |
void gmx::UpdateGroupsCog::addCogs |
( |
ArrayRef< const int > |
globalAtomIndices, |
|
|
ArrayRef< const RVec > |
coordinates, |
|
|
ArrayRef< const int > |
numAtomsPerNbnxmGridColumn |
|
) |
| |
Compute centers of geometry for supplied coordinates.
Coordinates are processed starting after the last index processed in the previous call to addCogs()
, unless clear()
was called last, in which case processing starts at 0. Coordinates are processed until globalAtomIndices.size()
.
- Parameters
-
[in] | globalAtomIndices | List of global atom indices for the atoms belonging to coordinates |
[in] | coordinates | List of coordinates to be processed, processing might not start at 0 (see above) |
[in] | numAtomsPerNbnxmGridColumn | A list of the number of atoms per NBNxM grid column, used for OpenMP parallelization, as update groups are never split over columns; can be empty |
RVec& gmx::UpdateGroupsCog::cog |
( |
int |
cogIndex | ) |
|
|
inline |
Returns a reference to a center of geometry.
- Parameters
-
[in] | cogIndex | The COG requested, should be; 0 <= cogIndex < cogs_.size() |
const RVec& gmx::UpdateGroupsCog::cogForAtom |
( |
int |
atomIndex | ) |
const |
|
inline |
Return a reference to a center of geometry given an atom index.
- Parameters
-
[in] | atomIndex | The atom index that maps to the COG requested |
int gmx::UpdateGroupsCog::cogIndex |
( |
int |
atomIndex | ) |
const |
|
inline |
Returns the COG index given an atom index.
- Parameters
-
[in] | atomIndex | The local atom index that maps to the COG |
bool gmx::UpdateGroupsCog::cogIsFillerParticle |
( |
int |
cogIndex | ) |
const |
|
inline |
Returns whether a COG entry consists of a (single) filler particle.
- Parameters
-
[in] | cogIndex | The COG requested, should be; 0 <= cogIndex < cogs_.size() |
The documentation for this class was generated from the following files: