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#
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#
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages