:orphan: # PetscViewerHDF5WriteGroup Ensure the HDF5 group exists in the HDF5 file ## Synopsis ``` #include "petscviewerhdf5.h" PetscErrorCode PetscViewerHDF5WriteGroup(PetscViewer viewer, const char path[]) ``` Not Collective ## Input Parameters - ***viewer -*** the `PetscViewer` of type `PETSCVIEWERHDF5` - ***path -*** (Optional) The path relative to the pushed group ## Note If path starts with '/', it is taken as an absolute path overriding currently pushed group, else path is relative to the current pushed group. `NULL` or empty path means the current pushed group. This will fail if the viewer is not writable. ## See Also [](sec_viewers), `PETSCVIEWERHDF5`, `PetscViewerHDF5Open()`, `PetscViewerHDF5PushGroup()`, `PetscViewerHDF5PopGroup()`, `PetscViewerHDF5GetGroup()`, `PetscViewerHDF5OpenGroup()` ## Level intermediate ## Location src/sys/classes/viewer/impls/hdf5/hdf5v.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/impls/hdf5/hdf5v.c) [Index of all Viewer routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)