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 SNES context

  • x1 - 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#

src/snes/interface/snes.c

Examples#

src/snes/tutorials/ex15.c


Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages