:orphan:
# TSGetApplicationContext
Gets the user-defined context for the timestepper that was set with `TSSetApplicationContext()`
## Synopsis
```
#include "petscts.h"
PetscErrorCode TSGetApplicationContext(TS ts, void *usrP)
```
Not Collective
## Input Parameter
- ***ts -*** the `TS` context obtained from `TSCreate()`
## Output Parameter
- ***usrP -*** user context
## Fortran Note
You must write a Fortran interface definition for this
function that tells Fortran the Fortran derived data type that you are passing in as the `ctx` argument.
## See Also
[](ch_ts), `TS`, `TSSetApplicationContext()`
## Level
intermediate
## Location
src/ts/interface/ts.c
## Examples
src/ts/tutorials/ex42.c
src/ts/tutorials/ex48.c
src/ts/tutorials/ex77.c
---
[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)