:orphan:
# TSForwardGetStages
Get the number of stages and the tangent linear sensitivities at the intermediate stages 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSForwardGetStages(TS ts, PetscInt *ns, Mat **S)
```

## Input Parameter

- ***ts -*** the `TS` context obtained from `TSCreate()`



## Output Parameters

- ***ns -*** number of stages
- ***S -*** tangent linear sensitivities at the intermediate stages





## See Also
 `TS`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/interface/sensitivity/tssen.c.html#TSForwardGetStages">src/ts/interface/sensitivity/tssen.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/explicit/rk/rk.c.html#TSForwardGetStages_RK">TSForwardGetStages_RK in src/ts/impls/explicit/rk/rk.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/theta/theta.c.html#TSForwardGetStages_Theta">TSForwardGetStages_Theta in src/ts/impls/implicit/theta/theta.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/interface/sensitivity/tssen.c)


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