# TSIRKRegister
adds a `TSIRK` implementation 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSIRKRegister(const char sname[], PetscErrorCode (*function)(TS))
```
Not Collective


## Input Parameters

- ***sname -*** name of user-defined IRK scheme
- ***function -*** function to create method context





## Note
`TSIRKRegister()` may be called multiple times to add several user-defined families.


## Sample usage
```none
   TSIRKRegister("my_scheme",MySchemeCreate);
```


Then, your scheme can be chosen with the procedural interface via
```none
TSIRKSetType(ts,"my_scheme")
```
or at runtime via the option
```none
-ts_irk_type my_scheme
```


## See Also
 [](chapter_ts), `TSIRK`, `TSIRKRegisterAll()`

## Level
advanced

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


---
[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)  
