:orphan: # TSDiscGradUseGonzalez Sets discrete gradient formulation with or without additional conservative terms. Without the 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 -*** use the Gonzalez term for the discrete gradient formulation ## See Also [](ch_ts), `TSDISCGRAD` ## Level Intermediate ## Location src/ts/impls/implicit/discgrad/tsdiscgrad.c ## Implementations TSDiscGradUseGonzalez_DiscGrad in src/ts/impls/implicit/discgrad/tsdiscgrad.c
--- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)