DMDASNESSetObjectiveLocal#
set a local residual evaluation function that operates on a local vector with DMDA
Synopsis#
#include "petscdmda.h"
#include "petscsnes.h"
PetscErrorCode DMDASNESSetObjectiveLocalVec(DM dm, DMDASNESObjectiveVec 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 For PetscErrorCode (*func)(DMDALocalInfo *info,Vec x,PetscReal *ob,void *ctx);
info -
DMDALocalInfo
defining the subdomain to evaluate the residual onx - state vector at which to evaluate residual
ob - eventual objective value
ctx - optional context passed above
See Also#
DMDA
, DMDASNESSetObjectiveLocal()
, DMSNESSetFunction()
, DMDASNESSetJacobianLocalVec()
, DMDACreate1d()
, DMDACreate2d()
, DMDACreate3d()
Level#
beginner
Location#
Examples#
src/snes/tutorials/ex5.c.html
src/snes/tutorials/ex55.c.html
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages