:orphan:
# TSReset
Resets a `TS` context and removes any allocated `Vec`s and `Mat`s.
## Synopsis
```
#include "petscts.h"
PetscErrorCode TSReset(TS ts)
```
Collective
## Input Parameter
- ***ts -*** the `TS` context obtained from `TSCreate()`
## See Also
[](ch_ts), `TS`, `TSCreate()`, `TSSetup()`, `TSDestroy()`
## Level
beginner
## Location
src/ts/interface/ts.c
## Examples
src/ts/tutorials/ex77.c
## Implementations
TSReset_ARKIMEX in src/ts/impls/arkimex/arkimex.c
TSReset_BDF in src/ts/impls/bdf/bdf.c
TSReset_EIMEX in src/ts/impls/eimex/eimex.c
TSReset_Euler in src/ts/impls/explicit/euler/euler.c
TSReset_RK in src/ts/impls/explicit/rk/rk.c
TSReset_SSP in src/ts/impls/explicit/ssp/ssp.c
TSReset_GLEE in src/ts/impls/glee/glee.c
TSReset_Alpha in src/ts/impls/implicit/alpha/alpha1.c
TSReset_Alpha in src/ts/impls/implicit/alpha/alpha2.c
TSReset_DiscGrad in src/ts/impls/implicit/discgrad/tsdiscgrad.c
TSReset_GLLE in src/ts/impls/implicit/glle/glle.c
TSReset_IRK in src/ts/impls/implicit/irk/irk.c
TSReset_Sundials in src/ts/impls/implicit/sundials/sundials.c
TSReset_Theta in src/ts/impls/implicit/theta/theta.c
TSReset_Mimex in src/ts/impls/mimex/mimex.c
TSReset_MPRK in src/ts/impls/multirate/mprk.c
TSReset_Pseudo in src/ts/impls/pseudo/posindep.c
TSReset_RosW in src/ts/impls/rosw/rosw.c
TSReset_BasicSymplectic in src/ts/impls/symplectic/basicsymplectic/basicsymplectic.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)