ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
The MoleculeIdPool manages molecule ID handling. More...
#include <MoleculeIdPool.h>
Public Member Functions | |
MoleculeIdPool (unsigned long poolsize, int numProcs, int myProcRank) | |
unsigned long | getNewMoleculeId () |
int | getOwnerRank (unsigned long id) |
unsigned long | localIdRangeSize () |
The MoleculeIdPool manages molecule ID handling.
The MoleculeIdPool divides the available range of molecule IDs across processes. It keeps track of how many molecule IDs were obtained by the process.
|
inline |
get a new, jet unused molecule ID
|
inline |
get the rank of the process belonging to molecule ID
|
inline |
get the number of molecule IDs this process has been assigned