:orphan:
# PetscFVGetComputeGradients
Return flag for computation of cell gradients on a `PetscFV` 
## Synopsis
```
#include "petscfv.h" 
PetscErrorCode PetscFVGetComputeGradients(PetscFV fvm, PetscBool *computeGradients)
```
Not Collective


## Input Parameter

- ***fvm -*** the `PetscFV` object



## Output Parameter

- ***computeGradients -*** Flag to compute cell gradients





## See Also
 `PetscFV`, `PetscFVSetComputeGradients()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/fv/interface/fv.c.html#PetscFVGetComputeGradients">src/dm/dt/fv/interface/fv.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex11.c.html">src/ts/tutorials/ex11.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/fv/interface/fv.c)


[Index of all FV routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
