# DMPlexComputeCellwiseIntegralFEM
Form the vector of cellwise integrals F from the global input X using pointwise functions specified by the user 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexComputeCellwiseIntegralFEM(DM dm, Vec X, Vec F, void *user)
```

## Input Parameters

- ***dm -*** The mesh
- ***X  -*** Global input vector
- ***user -*** The user context



## Output Parameter

- ***integral -*** Cellwise integrals for each field





## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMPlexSNESComputeResidualFEM()`

## Level
developer

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

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexfem.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)  
