petsc-3.3-p7 2013-05-11

DMSetLocalJacobian

Set the local Jacobian function from this DM

Synopsis

#include "petscdm.h"     
PetscErrorCode DMSetLocalJacobian(DM dm, PetscErrorCode (*lj)(DM, Vec, Mat,  Mat, void *))
Not collective

Input Parameters

dm - The DM
lj - The local Jacobian function

Calling sequence of lj

   lj (SNES snes, Vec x, Mat J, Mat M, void *ctx);

snes - the SNES context
x - local vector with the state at which to evaluate residual
J - matrix to put Jacobian in
M - matrix to use for defining Jacobian preconditioner
ctx - optional user-defined function context

See Also

DMGetLocalJacobian(), DMGetLocalFunction(), DMSetLocalFunction()

Level:intermediate
Location:
src/dm/interface/dm.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/snes/examples/tutorials/ex62.c.html