DMSNESGetObjectiveLocal#

get the local objective evaluation function information set with DMSNESSetObjectiveLocal().

Synopsis#

#include "petscsnes.h" 
PetscErrorCode DMSNESGetObjectiveLocal(DM dm, PetscErrorCode (**func)(DM dm, Vec x, PetscReal *obj, PetscCtx ctx), PetscCtxRt ctx) PeNSS

Not Collective

Input Parameter#

  • dm - DM with the associated callback

Output Parameters#

  • func - local objective evaluation

  • ctx - context for local residual evaluation

Calling sequence of func#

  • dm - the DM

  • x - the location where the objective function is to be evaluated

  • obj - the value of the objective function

  • ctx - optional context for the local objective function evaluation

See Also#

DMSNESSetObjective(), DMSNESSetObjectiveLocal(), DMSNESSetFunctionLocal()

Level#

beginner

Location#

src/snes/utils/dmlocalsnes.c


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