: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 src/ts/impls/implicit/sundials/sundials.c ## Implementations TSSundialsGetIterations_Sundials in src/ts/impls/implicit/sundials/sundials.c
--- [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)