# DMPlexReconstructGradientsFVM
reconstruct the gradient of a vector using a finite volume method. 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexReconstructGradientsFVM(DM dm, Vec locX, Vec grad)
```

## Input Parameters

- ***dm -*** the mesh
- ***locX -*** the local representation of the vector



## Output Parameter

- ***grad -*** the global representation of the gradient





## See Also
 [](chapter_unstructured), `DM`, `Vec`, `DMPlexGetGradientDM()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexfvm.c.html#DMPlexReconstructGradientsFVM">src/dm/impls/plex/plexfvm.c</A>

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexfvm.c)


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