# PetscViewerHDF5SetDefaultTimestepping
Set the flag for default timestepping 
## Synopsis
```
#include "petscviewerhdf5.h" 
PetscErrorCode PetscViewerHDF5SetDefaultTimestepping(PetscViewer viewer, PetscBool flg)
```
Logically Collective


## Input Parameters

- ***viewer -*** the `PetscViewer`; if it is not `PETSCVIEWERHDF5` then this command is ignored
- ***flg    -*** if `PETSC_TRUE` we will assume that timestepping is on



## Options Database Key

- ***-viewer_hdf5_default_timestepping -*** turns on (true) or off (false) default timestepping



## Note
If the timestepping attribute is not found for an object, then the default timestepping is used




## See Also
 [](sec_viewers), `PETSCVIEWERHDF5`, `PetscViewerHDF5GetDefaultTimestepping()`, `PetscViewerHDF5PushTimestepping()`, `PetscViewerHDF5GetTimestep()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/impls/hdf5/hdf5v.c.html#PetscViewerHDF5SetDefaultTimestepping">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#PetscViewerHDF5SetDefaultTimestepping_HDF5">PetscViewerHDF5SetDefaultTimestepping_HDF5 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)  
