Rodin::IO::Internal namespace

Internal helpers for PETSc HDF5 serialization primitives.

Functions

void writeScalarULL(hid_t file, const char* path, unsigned long long value)
Writes a single unsigned long long scalar to an HDF5 dataset.
auto readVectorDouble(hid_t file, const char* path) -> std::vector<double>
Reads a 1-D array of double values from an HDF5 dataset.
auto readScalarULL(hid_t file, const char* path) -> unsigned long long
Reads a single unsigned long long scalar from an HDF5 dataset.

Function documentation

void Rodin::IO::Internal::writeScalarULL(hid_t file, const char* path, unsigned long long value)

Writes a single unsigned long long scalar to an HDF5 dataset.

Parameters
file Open HDF5 file handle.
path Dataset path within the file (e.g. "/GridFunction/Meta/Size").
value The value to write.

std::vector<double> Rodin::IO::Internal::readVectorDouble(hid_t file, const char* path)

Reads a 1-D array of double values from an HDF5 dataset.

Parameters
file Open HDF5 file handle.
path Dataset path within the file.
Returns Vector of double values read from the dataset.

unsigned long long Rodin::IO::Internal::readScalarULL(hid_t file, const char* path)

Reads a single unsigned long long scalar from an HDF5 dataset.

Parameters
file Open HDF5 file handle.
path Dataset path within the file.
Returns The scalar value read.