Gromacs  2026.0-dev-20250917-14f3421e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
anonymous_namespace{h5md_dataset.cpp} Namespace Reference

Description

Definitions of H5md data set manipulation routines.

Author
Magnus Lundborg lundb.nosp@m.org..nosp@m.magnu.nosp@m.s@gm.nosp@m.ail.c.nosp@m.om
Petter Johansson pettj.nosp@m.oha@.nosp@m.kth.s.nosp@m.e

Functions

static DataSetDims getFrameChunkOffset (const hid_t dataSet, const hsize_t frameIndex)
 Return the per-dimension offset to the data corresponding to a given frame. More...
 
static DataSetDims getFrameChunkDims (const DataSetDims &dataSetDims)
 

Function Documentation

static DataSetDims anonymous_namespace{h5md_dataset.cpp}::getFrameChunkOffset ( const hid_t  dataSet,
const hsize_t  frameIndex 
)
static

Return the per-dimension offset to the data corresponding to a given frame.

Since frames are always the major axis the first value of the returned offset is the given frame index. We are only considering the case when all data for that frame is selected, so the offset for all other axis is 0. For example, to reach frame 15 of a 3d set we use the offset [15, 0, 0] to access the memory.

Parameters
[in]dataSetHandle to data set.
[in]frameIndexIndex of frame.
Returns
Fixed-size array with the offset.