# TSAdaptSetType
sets the approach used for the error adapter 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode TSAdaptSetType(TSAdapt adapt, TSAdaptType type)
```
Logicially Collective onadapt


## Input Parameters

- ***adapt -*** the `TS` adapter, most likely obtained with `TSGetAdapt()`
- ***type -*** one of the `TSAdaptType`



## Options Database Key

- ***-ts_adapt_type <basic or dsp or none> -*** to set the adapter type





## See Also
 [](chapter_ts), `TSGetAdapt()`, `TSAdaptDestroy()`, `TSAdaptType`, `TSAdaptGetType()`, `TSAdaptType`

## Level
intermediate

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

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/adapt/interface/tsadapt.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)  
