DMSNESGetJacobianLocal#

the local Jacobian evaluation function set with DMSNESSetJacobianLocal().

Synopsis#

#include "petscsnes.h" 
PetscErrorCode DMSNESGetJacobianLocal(DM dm, PetscErrorCode (**func)(DM dm, Vec X, Mat J, Mat Jp, PetscCtx ctx), PetscCtxRt ctx)

Logically Collective

Input Parameter#

  • dm - DM with the associated callback

Output Parameters#

  • func - local Jacobian evaluation

  • ctx - context for local Jacobian evaluation

Calling sequence of func#

  • dm - the DM context

  • X - current solution vector (ghosted or not?)

  • J - the Jacobian

  • Jp - approximate Jacobian used to compute the preconditioner, often J

  • ctx - a user provided context

See Also#

SNES: Nonlinear Solvers, DMSNESSetJacobianLocal(), DMSNESSetJacobian()

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