:orphan: # DMPlexComputeIntegralFEM Form the integral over the domain from the global input X using pointwise functions specified by the user ## Synopsis ``` #include "petscdmplex.h" PetscErrorCode DMPlexComputeIntegralFEM(DM dm, Vec X, PetscScalar *integral, void *user) ``` ## Input Parameters - ***dm -*** The mesh - ***X -*** Global input vector - ***user -*** The user context ## Output Parameter - ***integral -*** Integral for each field ## See Also [](ch_unstructured), `DM`, `DMPLEX`, `DMPlexSNESComputeResidualFEM()` ## Level developer ## Location src/dm/impls/plex/plexfem.c ## Examples src/snes/tutorials/ex69.c
src/ts/tutorials/ex48.c
src/ts/utils/dmplexlandau/tutorials/ex1.c
src/ts/utils/dmplexlandau/tutorials/ex2.c
--- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)