# TSSundialsSetGramSchmidtType
Sets type of orthogonalization used in GMRES method by `TSSUNDIALS` linear solver. 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode TSSundialsSetGramSchmidtType(TS ts, TSSundialsGramSchmidtType type)
```
Logically Collective


## Input Parameters

- ***ts  -*** the time-step context
- ***type -*** either `SUNDIALS_MODIFIED_GS` or `SUNDIALS_CLASSICAL_GS`





## See Also
 [](chapter_ts), `TSSundialsGetIterations()`, `TSSundialsSetType()`, `TSSundialsSetMaxl()`,
`TSSundialsSetLinearTolerance()`, `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#TSSundialsSetGramSchmidtType">src/ts/impls/implicit/sundials/sundials.c</A>

## Implementations

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