PETSc version 3.17.5
PetscViewerHDF5HasGroup
Check whether the current (pushed) group exists in the HDF5 file
Synopsis
#include "petscviewerhdf5.h"
PetscErrorCode PetscViewerHDF5HasGroup(PetscViewer viewer, const char path[], PetscBool *has)
Collective
Input Parameters
| viewer | - The HDF5 viewer
|
| path | - The group path
|
Output Parameter
| has | - Flag for group existence
|
Notes
If path starts with '/', it is taken as an absolute path overriding currently pushed group, else path is relative to the current pushed group.
So NULL or empty path means the current pushed group.
If path exists but is not a group, PETSC_FALSE is returned.
See Also
PetscViewerHDF5HasAttribute(), PetscViewerHDF5HasDataset(), PetscViewerHDF5PushGroup(), PetscViewerHDF5PopGroup(), PetscViewerHDF5GetGroup(), PetscViewerHDF5OpenGroup()
Level
advanced
Location
src/sys/classes/viewer/impls/hdf5/hdf5v.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages