TSSSPSetNumStages — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# 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 - Type of `TSSSP` method (one of) rks2 rks3 rk104

- -ts_ssp_nstages<rks2: 5, rks3: 9> - Number of stages

## See Also

TS: Scalable ODE and DAE Solvers, `TSSSP`, `TSSSPGetNumStages()`, `TSSSPRKS2`, `TSSSPRKS3`, `TSSSPRK104`

## Level

beginner

## Location

src/ts/impls/explicit/ssp/ssp.c

## Implementations

TSSSPSetNumStages_SSP() in src/ts/impls/explicit/ssp/ssp.c

Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages