Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
gmx::anonymous_namespace{correlationgrid.cpp} Namespace Reference

Functions

int getBlockDataListSize (int numBlocks)
 Return the number of block data structs needed for keeping a certain number of blocks. More...
 

Function Documentation

int gmx::anonymous_namespace{correlationgrid.cpp}::getBlockDataListSize ( int  numBlocks)

Return the number of block data structs needed for keeping a certain number of blocks.

The list start with 1 block and doubles, so we need 1 + 2log(numBlocks).

Parameters
[in]numBlocksNumber of blocks.
Returns
the number of block data structs.