# TSIRKSetType
Set the type of `TSIRK` scheme to use 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSIRKSetType(TS ts, TSIRKType irktype)
```
Logically collective


## Input Parameters

- ***ts -*** timestepping context
- ***irktype -*** type of `TSIRK` scheme



## Options Database Key

- ***-ts_irk_type <gauss> -*** set irk type





## See Also
 [](chapter_ts), `TSIRKGetType()`, `TSIRK`, `TSIRKType`, `TSIRKGAUSS`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/irk/irk.c.html#TSIRKSetType">src/ts/impls/implicit/irk/irk.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/irk/irk.c.html#TSIRKSetType_IRK">TSIRKSetType_IRK in src/ts/impls/implicit/irk/irk.c</A><BR>


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