:orphan:
# 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
 [](ch_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</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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
