# TSSundialsSetMaxl
Sets the dimension of the Krylov space used by GMRES in the linear solver in `TSSUNDIALS`. `TSSUNDIALS` DOES NOT use restarted GMRES so this is the maximum number of GMRES steps that will be used. 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode TSSundialsSetMaxl(TS ts, PetscInt maxl)
```
Logically Collective


## Input Parameters

- ***ts      -*** the time-step context
- ***maxl -*** number of direction vectors (the dimension of Krylov subspace).





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

## Level
advanced

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/sundials/sundials.c.html#TSSundialsSetMaxl_Sundials">TSSundialsSetMaxl_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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
