# PetscFEIntegrate
Produce the integral for the given field for a chunk of elements by quadrature integration 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscFEIntegrate(PetscDS prob, PetscInt field, PetscInt Ne, PetscFEGeom *cgeom, const PetscScalar coefficients[], PetscDS probAux, const PetscScalar coefficientsAux[], PetscScalar integral[])
```
Not collective


## Input Parameters

- ***prob         -*** The `PetscDS` specifying the discretizations and continuum functions
- ***field        -*** The field being integrated
- ***Ne           -*** The number of elements in the chunk
- ***cgeom        -*** The cell geometry for each cell in the chunk
- ***coefficients -*** The array of FEM basis coefficients for the elements
- ***probAux      -*** The `PetscDS` specifying the auxiliary discretizations
- ***coefficientsAux -*** The array of FEM auxiliary basis coefficients for the elements



## Output Parameter

- ***integral     -*** the integral for this field





## Developer Note
The function name begins with `PetscFE` and yet the first argument is `PetscDS` and it has no `PetscFE` arguments.


## See Also
 `PetscFE`, `PetscDS`, `PetscFEIntegrateResidual()`, `PetscFEIntegrateBd()`

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/fe/impls/basic/febasic.c.html#PetscFEIntegrate_Basic">PetscFEIntegrate_Basic in src/dm/dt/fe/impls/basic/febasic.c</A><BR>


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


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