Gromacs  2025.0-dev-20241011-013a99c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
gmx::anonymous_namespace{correlationtensor.cpp} Namespace Reference

Functions

int getBlockIndex (double blockLength, double currentAccumulatedLength)
 Get the block index for the current block and simulation length. More...
 

Function Documentation

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.

Parameters
[in]blockLengthBlock length.
[in]currentAccumulatedLengthSampling length of all data collected up to the current step, in time or weight.
Returns
the block index.