SNESGetHessian

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

Synopsis

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

Input Parameter

snes -the nonlinear solver context

Output Parameters

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

See Also

SNESSetHessian(), SNESComputeHessian()

Keywords

SNES, get, Hessian

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