# TSRKSetType
Set the type of the `TSRK` scheme 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSRKSetType(TS ts, TSRKType rktype)
```
Logically collective


## Input Parameters

- ***ts -*** timestepping context
- ***rktype -*** type of `TSRK` scheme



## Options Database Key

- ***-ts_rk_type -*** <1fe,2a,3,3bs,4,5f,5dp,5bs>





## See Also
 [](chapter_ts), `TSRKGetType()`, `TSRK`, `TSRKType`, `TSRK1FE`, `TSRK2A`, `TSRK2B`, `TSRK3`, `TSRK3BS`, `TSRK4`, `TSRK5F`, `TSRK5DP`, `TSRK5BS`, `TSRK6VR`, `TSRK7VR`, `TSRK8VR`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/explicit/rk/rk.c.html#TSRKSetType">src/ts/impls/explicit/rk/rk.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/explicit/rk/rk.c.html#TSRKSetType_RK">TSRKSetType_RK in src/ts/impls/explicit/rk/rk.c</A><BR>


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