SNESDefaultComputeHessianColor

Computes the Hessian using colored finite differences.

Synopsis

#include "snes.h"  
int SNESDefaultComputeHessianColor(SNES snes,Vec x1,Mat *J,Mat *B,MatStructure *flag,void *ctx)
Collective on SNES

Input Parameters

x1 - compute Hessian at this point
ctx - application's gradient context, as set with SNESSetGradient()

Output Parameters

J - Hessian matrix (not altered in this routine)
B - newly computed Hessian matrix to use with preconditioner (generally the same as J)
flag - flag indicating whether the matrix sparsity structure has changed

Options Database Keys

-mat_fd_coloring_freq <freq> -Activates SNESDefaultComputeJacobianColor()

.keywords: SNES, finite differences, Hessian, coloring, sparse

See Also

SNESSetHessian()

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