:orphan:
# TSPostStep
Runs the user-defined post-step function that was set with `TSSetPostStep()` 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSPostStep(TS ts)
```
Collective


## Input Parameter

- ***ts   -*** The `TS` context obtained from `TSCreate()`



## Note
`TSPostStep()` is typically used within time stepping implementations,
so most users would not generally call this routine themselves.




## See Also
 [](ch_ts), `TS`, `TSSetPreStep()`, `TSSetPreStage()`, `TSSetPostEvaluate()`, `TSGetTimeStep()`, `TSGetStepNumber()`, `TSGetTime()`, `TSSetPotsStep()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/interface/ts.c.html#TSPostStep">src/ts/interface/ts.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/interface/ts.c)


[Index of all TS routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
