SNESPicardComputeMFFunction#

Matrix-free residual \(A(x) x - b(x)\) used by SNESSetPicard() when the operator is applied through -snes_mf_operator

Synopsis#

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

Note#

Uses a duplicate of snes->jacobian_pre because snes->jacobian_pre cannot be changed during the KSPSolve().

See Also#

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

Level#

developer

Location#

src/snes/interface/snes.c


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