:orphan: # DMPlexVecSetClosure Set an array of the values on the closure of `point` ## Synopsis ``` #include "petscdmplex.h" PetscErrorCode DMPlexVecSetClosure(DM dm, PetscSection section, Vec v, PetscInt point, const PetscScalar values[], InsertMode mode) ``` Not collective ## Input Parameters - ***dm -*** The `DM` - ***section -*** The section describing the layout in `v`, or `NULL` to use the default section - ***v -*** The local vector - ***point -*** The point in the `DM` - ***values -*** The array of values - ***mode -*** The insert mode. One of `INSERT_ALL_VALUES`, `ADD_ALL_VALUES`, `INSERT_VALUES`, `ADD_VALUES`, `INSERT_BC_VALUES`, and `ADD_BC_VALUES`, where `INSERT_ALL_VALUES` and `ADD_ALL_VALUES` also overwrite boundary conditions. ## See Also [](ch_unstructured), `DM`, `DMPLEX`, `DMPlexVecGetClosure()`, `DMPlexMatSetClosure()` ## Level intermediate ## Location src/dm/impls/plex/plex.c ## Examples src/dm/impls/plex/tutorials/ex6.c
src/snes/tutorials/ex77.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plex.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)