DMPlexSetSNESLocalFEM#

Use DMPLEX’s internal FEM routines to compute SNES boundary values, objective, residual, and Jacobian.

Synopsis#

#include "petscdmplex.h" 
#include "petscsnes.h"   
PetscErrorCode DMPlexSetSNESLocalFEM(DM dm, PetscBool use_obj, void *ctx)

Input Parameters#

  • dm - The DM object

  • use_obj - Use the objective function callback

  • ctx - The user context that will be passed to pointwise evaluation routines

See Also#

SNES: Nonlinear Solvers,DMPLEX, SNES, PetscDSAddBoundary(), PetscDSSetObjective(), PetscDSSetResidual(), PetscDSSetJacobian()

Level#

developer

Location#

src/snes/utils/dmplexsnes.c

Examples#

src/snes/tutorials/ex36.c
src/tao/tutorials/ex1.c
src/snes/tutorials/ex17.c
src/tao/tutorials/ex2.c
src/snes/tutorials/ex23.c
src/snes/tutorials/ex69.c
src/snes/tutorials/ex26.c
src/snes/tutorials/ex11.c
src/snes/tutorials/ex76.c
src/snes/tutorials/ex63.c


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