SNESGetJacobian

Returns the Jacobian matrix and optionally the user provided context for evaluating the Jacobian.

Synopsis

int SNESGetJacobian(SNES snes,Mat *A,Mat *B, void **ctx)
Not Collective, but Mat object will be parallel if SNES object is

Input Parameter

snes -the nonlinear solver context

Output Parameters

A - location to stash Jacobian matrix (or PETSC_NULL)
B - location to stash preconditioner matrix (or PETSC_NULL)
ctx - location to stash Jacobian ctx (or PETSC_NULL)

See Also

SNESSetJacobian(), SNESComputeJacobian()

Location: src/snes/interface/snes.c
SNES Index
Table of Contents