:orphan:
# TSSundialsSetType
Sets the method that `TSSUNDIALS` will use for integration. 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode TSSundialsSetType(TS ts, TSSundialsLmmType type)
```
Logically Collective


## Input Parameters

- ***ts     -*** the time-step context
- ***type   -*** one of  `SUNDIALS_ADAMS` or `SUNDIALS_BDF`





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

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/sundials/sundials.c.html#TSSundialsSetType_Sundials">TSSundialsSetType_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)  
