petsc-3.3-p7 2013-05-11

DMSetJacobian

sets a function to compute the matrix entries for the KSP solver or Jacobian for SNES

Synopsis

#include "petscdm.h"     
PetscErrorCode  DMSetJacobian(DM dm,PetscErrorCode (*f)(DM,Vec,Mat,Mat,MatStructure*))
Logically Collective on DM

Input Parameter

dm - the DM object to destroy
f - the function to compute the matrix entries

See Also

DMView(), DMCreateGlobalVector(), DMCreateInterpolation(), DMCreateColoring(), DMCreateMatrix(), DMGetApplicationContext(), DMSetInitialGuess(),
DMSetFunction()

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/ksp/ksp/examples/tutorials/ex22f.F.html
src/snes/examples/tutorials/ex35.c.html