:orphan: # TSDISCGRAD ODE solver using the discrete gradients version of the implicit midpoint method ## Notes This is the implicit midpoint rule, with an optional term that guarantees the discrete gradient property. This timestepper applies to systems of the form ```none u_t = S(u) grad F(u) ``` where S(u) is a linear operator, and F is a functional of u. ## See Also [](ch_ts), `TSCreate()`, `TSSetType()`, `TS`, `TSDISCGRAD`, `TSDiscGradSetFormulation()` ## Level intermediate ## Location 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)