# TSIRKGetNumStages
Get the number of stages of `TSIRK` scheme 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSIRKGetNumStages(TS ts, PetscInt *nstages)
```
Logically collective


## Input Parameters

- ***ts -*** timestepping context
- ***nstages -*** number of stages of `TSIRK` scheme





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

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/irk/irk.c.html#TSIRKGetNumStages_IRK">TSIRKGetNumStages_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)  
