Rodin::IO::Internal namespace

Defined in Rodin/PETSc/IO/HDF5.h

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 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> 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 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.