:orphan:
# TSSSPSetNumStages
set the number of stages to use with the `TSSSP` method. Must be called after `TSSSPSetType()`. 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSSSPSetNumStages(TS ts, PetscInt nstages)
```
Logically Collective


## Input Parameters

- ***ts -*** time stepping object
- ***nstages -*** number of stages



## Options Database Keys

- ***-ts_ssp_type <rks2>               -*** Type of `TSSSP` method (one of) rks2 rks3 rk104
- ***-ts_ssp_nstages<rks2: 5, rks3: 9> -*** Number of stages





## See Also
 [](ch_ts), `TSSSP`, `TSSSPGetNumStages()`, `TSSSPSetNumStages()`, `TSSSPRKS2`, `TSSSPRKS3`, `TSSSPRK104`

## Level
beginner

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

## Implementations

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/impls/explicit/ssp/ssp.c)


[Index of all TS routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
