:orphan:
# TSGLLESetAcceptType
sets the acceptance test for `TSGLLE` 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSGLLESetAcceptType(TS ts, TSGLLEAcceptType type)
```
Time integrators that need to control error must have the option to reject a time step based on local error
estimates.  This function allows different schemes to be set.

Logically Collective


## Input Parameters

- ***ts -*** the `TS` context
- ***type -*** the type



## Options Database Key

- ***-ts_gl_accept_type <type> -*** sets the method used to determine whether to accept or reject a step





## See Also
 [](ch_ts), `TS`, `TSGLLE`, `TSGLLEAcceptRegister()`, `TSGLLEAdapt`

## Level
intermediate

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

## Implementations

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


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