SNESPicardComputeFunction#

Compute the residual \(A(x) x - b(x)\) using the callbacks registered by SNESSetPicard()

Synopsis#

#include "petscsnes.h"  
#include "petscsnes.h"  
PetscErrorCode SNESPicardComputeFunction(SNES snes, Vec x, Vec f, PetscCtx ctx)

Collective

Input Parameters#

  • snes - the SNES context

  • x - the current iterate

  • ctx - unused application context; the Picard callbacks are retrieved from the attached DMSNES

Output Parameter#

  • f - the residual vector

See Also#

SNES: Nonlinear Solvers, SNES, SNESSetPicard(), SNESPicardComputeMFFunction(), SNESPicardComputeJacobian()

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