Gromacs
2026.0-dev-20250711-6857db4
|
Iterator to loop over cells on a grid in a thread parallel fashion for generating balanced lists.
Public Member Functions | |
ThreadedCellIndexer (const Grid &iGrid, bool haveMultipleDomains, int numThreads, int threadIndex) | |
Constructor, next() needs to be called once after construction to get a valid cell. | |
bool | next () |
Go to the next cell, returns true when there is a cell, false when the end is reached. | |
int | blockSize () const |
Returns the size of contiguous blocks of cells assigned to threads. | |
int | cellIndex () const |
Returns the current cell index. | |
int | cellIndexX () const |
Returns the current cell index along X. | |
int | cellIndexY () const |
Returns the current cell index along Y. | |