:orphan: # DMSNESSetBoundaryLocal set a local boundary value function. This function is called with local vector containing the local vector information PLUS ghost point information. It should insert values into the local vector that do not come from the global vector, such as essential boundary condition data. ## Synopsis ``` #include "petscsnes.h" PetscErrorCode DMSNESSetBoundaryLocal(DM dm, PetscErrorCode (*func)(DM, Vec, void *), void *ctx) ``` Logically Collective ## Input Parameters - ***dm -*** `DM` to associate callback with - ***func -*** local boundary value evaluation - ***ctx -*** optional context for local boundary value evaluation ## See Also `DMSNESSetFunctionLocal()`, `DMDASNESSetJacobianLocal()` ## Level advanced ## Location src/snes/utils/dmlocalsnes.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/utils/dmlocalsnes.c) [Index of all SNES routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)