# TSGetType
Gets the `TS` method type (as a string). 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSGetType(TS ts, TSType *type)
```
Not Collective


## Input Parameter

- ***ts -*** The `TS`



## Output Parameter

- ***type -*** The name of `TS` method





## See Also
 [](chapter_ts), `TS`, `TSType`, `TSSetType()`

## Level
intermediate

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex31.c.html">src/ts/tutorials/ex31.c.html</A><BR>


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


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