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(), DMGetInterpolation(), DMGetColoring(), DMGetMatrix(), 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/ex45.c.html
src/ksp/ksp/examples/tutorials/ex45f.F.html