DMDASNESSetObjectiveLocal#
set a local residual evaluation function to used with a DMDA
Synopsis#
#include "petscdmda.h"
#include "petscsnes.h"
PetscErrorCode DMDASNESSetObjectiveLocal(DM dm, DMDASNESObjective func, void *ctx)
Logically Collective
Input Parameters#
dm -
DM
to associate callback withfunc - local objective evaluation
ctx - optional context for local residual evaluation
Calling sequence of func
#
PetscErrorCode func(DMDALocalInfo *info, void *x, PetscReal obj, void *ctx);
info - defines the subdomain to evaluate the residual on
x - dimensional pointer to state at which to evaluate residual
obj - eventual objective value
ctx - optional context passed above
See Also#
DMDA
, DMSNESSetFunction()
, DMDASNESSetJacobianLocal()
, DMDACreate1d()
, DMDACreate2d()
, DMDACreate3d()
Level#
beginner
Location#
Examples#
src/snes/tutorials/ex5.c
src/snes/tutorials/ex55.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages