:orphan:
# TSSundialsGetIterations
Gets the number of nonlinear and linear iterations used so far by `TSSUNDIALS`. 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode TSSundialsGetIterations(TS ts, int *nonlin, int *lin)
```
Not Collective


## Input Parameter

- ***ts     -*** the time-step context



## Output Parameters

- ***nonlin -*** number of nonlinear iterations
- ***lin    -*** number of linear iterations





## Note
These return the number since the creation of the `TS` object


## See Also
 [](ch_ts), `TSSundialsSetType()`, `TSSundialsSetMaxl()`,
`TSSundialsSetLinearTolerance()`, `TSSundialsSetGramSchmidtType()`, `TSSundialsSetTolerance()`,
`TSSundialsGetIterations()`, `TSSundialsSetType()`,
`TSSundialsSetLinearTolerance()`, `TSSundialsGetPC()`, `TSSetExactFinalTime()`

## Level
advanced

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/sundials/sundials.c.html#TSSundialsGetIterations_Sundials">TSSundialsGetIterations_Sundials in src/ts/impls/implicit/sundials/sundials.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/impls/implicit/sundials/sundials.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)  
