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

Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages