# DMPlexMatSetClosure
Set an array of the values on the closure of 'point' using a different row and column section 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexMatSetClosureGeneral(DM dmRow, PetscSection sectionRow, PetscSection globalSectionRow, DM dmCol, PetscSection sectionCol, PetscSection globalSectionCol, Mat A, PetscInt point, const PetscScalar values[], InsertMode mode)
```
Not collective


## Input Parameters

- ***dmRow -*** The `DM` for the row fields
- ***sectionRow -*** The section describing the layout, or NULL to use the default section in dmRow
- ***globalSectionRow -*** The section describing the layout, or NULL to use the default global section in dmRow
- ***dmCol -*** The `DM` for the column fields
- ***sectionCol -*** The section describing the layout, or NULL to use the default section in dmCol
- ***globalSectionCol -*** The section describing the layout, or NULL to use the default global section in dmCol
- ***A -*** The matrix
- ***point -*** The point in the `DM`
- ***values -*** The array of values
- ***mode -*** The insert mode, where `INSERT_ALL_VALUES` and `ADD_ALL_VALUES` also overwrite boundary conditions





## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMPlexMatSetClosure()`, `DMPlexVecGetClosure()`, `DMPlexVecSetClosure()`

## Level
intermediate

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


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
