SNESComputeFunctionDefaultNPC#

Compute the residual by applying the attached nonlinear preconditioner when one is present, otherwise defer to SNESComputeFunction()

Synopsis#

#include "petscsnes.h"  
PetscErrorCode SNESComputeFunctionDefaultNPC(SNES snes, Vec X, Vec F)

Collective

Input Parameters#

  • snes - the SNES context

  • X - the current iterate

Output Parameter#

  • F - the residual vector produced by the nonlinear preconditioner (or the standard function evaluation)

Note#

Used as the residual callback for SNESMF when a nonlinear preconditioner is set on the outer SNES.

See Also#

SNES: Nonlinear Solvers, SNES, SNESSetNPC(), SNESApplyNPC(), SNESComputeFunction(), SNESGetNPCFunction()

Level#

developer

Location#

src/snes/interface/snespc.c


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