SNESGetHessian

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

Synopsis

#include "petscsnes.h"  
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

Level:advanced
Location:
src/snes/interface/snes.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages