# 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
 [](chapter_ts), `TSCreate()`, `TSSetType()`, `TS`, `TSDISCGRAD`, `TSDiscGradSetFormulation()`

## Level
intermediate

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


---
[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)  
