petsc-3.3-p7 2013-05-11

DMComputeJacobian

compute the matrix entries for the solver

Synopsis

#include "petscdm.h"     
PetscErrorCode  DMComputeJacobian(DM dm,Vec x,Mat A,Mat B,MatStructure *stflag)
Collective on DM

Input Parameter

dm - the DM object
x - location to compute Jacobian at; will be PETSC_NULL for linear problems, for nonlinear problems if not provided then pulled from DM
A - matrix that defines the operator for the linear solve
B - the matrix used to construct the preconditioner

See Also

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

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