Gromacs
2025.0-dev-20241011-013a99c
|
Functions | |
int | getBlockIndex (double blockLength, double currentAccumulatedLength) |
Get the block index for the current block and simulation length. More... | |
int gmx::anonymous_namespace{correlationtensor.cpp}::getBlockIndex | ( | double | blockLength, |
double | currentAccumulatedLength | ||
) |
Get the block index for the current block and simulation length.
This is simply how many blocks of length blockLength
fit completely into totalAccumulatedLength
, which is either the current time minus the start time, which time weighting, or the total weight.
[in] | blockLength | Block length. |
[in] | currentAccumulatedLength | Sampling length of all data collected up to the current step, in time or weight. |