SNESPicardComputeJacobian#
Trivial Jacobian assembly callback used by SNESSetPicard(); the Picard operator is filled in by SNESPicardComputeFunction()
Synopsis#
#include "petscsnes.h"
#include "petscsnes.h"
PetscErrorCode SNESPicardComputeJacobian(SNES snes, Vec x1, Mat J, Mat B, PetscCtx ctx)
Collective
Input Parameters#
snes - the
SNEScontextx1 - the current iterate (unused)
J - the Jacobian matrix to assemble
B - the preconditioning matrix (unused)
ctx - unused application context
Note#
Only calls MatAssemblyBegin()/MatAssemblyEnd() on J, because the Picard iteration reuses the operator already assembled by SNESPicardComputeFunction().
See Also#
SNES: Nonlinear Solvers, SNES, SNESSetPicard(), SNESPicardComputeFunction(), SNESPicardComputeMFFunction()
Level#
developer
Location#
Examples#
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages