# TSDiscGradUseGonzalez
Sets discrete gradient formulation with or without additional conservative terms.  Without flag, the discrete gradients timestepper is just backwards euler 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSDiscGradUseGonzalez(TS ts, PetscBool flg)
```
Not Collective


## Input Parameters

- ***ts -*** timestepping context
- ***flg -*** `PETSC_TRUE` to use the Gonzalez term



## Options Database Key

- ***-ts_discgrad_gonzalez <flg> -*** use the Gonzalez term for the discrete gradient formulation





## See Also
 [](chapter_ts), `TSDISCGRAD`

## Level
Intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/discgrad/tsdiscgrad.c.html#TSDiscGradUseGonzalez">src/ts/impls/implicit/discgrad/tsdiscgrad.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/discgrad/tsdiscgrad.c.html#TSDiscGradUseGonzalez_DiscGrad">TSDiscGradUseGonzalez_DiscGrad in src/ts/impls/implicit/discgrad/tsdiscgrad.c</A><BR>


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