PetscHDF5IntCast#
Safely cast a nonnegative PetscInt to an HDF5 hsize_t, raising an error on overflow or negative input
Synopsis#
static inline PetscErrorCode PetscHDF5IntCast(PetscInt a, hsize_t *b)
Not Collective; No Fortran Support
Input Parameter#
a - the
PetscIntvalue to convert
Output Parameter#
b - on output, the value as an
hsize_t
Note#
Used internally by PETSc’s HDF5 viewer routines when computing dataset dimensions and offsets.
See Also#
PetscViewerHDF5, PetscIntCast(), PetscMPIIntCast()
Level#
developer
Location#
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages