# PetscViewerHDF5GetGroup
Get the current HDF5 group name (full path), set with `PetscViewerHDF5PushGroup()`/`PetscViewerHDF5PopGroup()`. 
## Synopsis
```
#include "petscviewerhdf5.h" 
PetscErrorCode PetscViewerHDF5GetGroup(PetscViewer viewer, const char path[], char *abspath[])
```
Not collective


## Input Parameters

- ***viewer -*** the `PetscViewer` of type `PETSCVIEWERHDF5`
- ***path -*** (Optional) The path relative to the pushed group



## Output Parameter

- ***abspath -*** The absolute HDF5 path (group)





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

The output abspath is newly allocated so needs to be freed.


## See Also
 `PETSCVIEWERHDF5`, `PetscViewerHDF5Open()`, `PetscViewerHDF5PushGroup()`, `PetscViewerHDF5PopGroup()`, `PetscViewerHDF5OpenGroup()`, `PetscViewerHDF5WriteGroup()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/impls/hdf5/hdf5v.c.html#PetscViewerHDF5GetGroup">src/sys/classes/viewer/impls/hdf5/hdf5v.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/impls/hdf5/hdf5v.c.html#PetscViewerHDF5GetGroup_Internal">PetscViewerHDF5GetGroup_Internal in src/sys/classes/viewer/impls/hdf5/hdf5v.c</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
