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/tao/tutorials/ex2.c
src/snes/tutorials/ex69.c
src/snes/tutorials/ex26.c
src/snes/tutorials/ex20.c
src/ts/tutorials/ex30.c
src/snes/tutorials/ex24.c
src/snes/tutorials/ex27.c
src/snes/tutorials/ex77.c
src/snes/tutorials/ex36.c
src/tao/tutorials/ex1.c


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