# DMPlexInsertBoundaryValues
Puts coefficients which represent boundary values into the local solution vector 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexInsertBoundaryValues(DM dm, PetscBool insertEssential, Vec locX, PetscReal time, Vec faceGeomFVM, Vec cellGeomFVM, Vec gradFVM)
```
Not Collective


## Input Parameters

- ***dm -*** The `DM`
- ***insertEssential -*** Should I insert essential (e.g. Dirichlet) or inessential (e.g. Neumann) boundary conditions
- ***time -*** The time
- ***faceGeomFVM -*** Face geometry data for FV discretizations
- ***cellGeomFVM -*** Cell geometry data for FV discretizations
- ***gradFVM -*** Gradient reconstruction data for FV discretizations



## Output Parameters

- ***locX -*** Solution updated with boundary values





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

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexfem.c.html#DMPlexInsertBoundaryValues">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>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex36.c.html">src/snes/tutorials/ex36.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex11.c.html">src/ts/tutorials/ex11.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex77.c.html">src/ts/tutorials/ex77.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexfem.c.html#DMPlexInsertBoundaryValues_Plex">DMPlexInsertBoundaryValues_Plex in src/dm/impls/plex/plexfem.c</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)  
