SNESSetNPC#
Sets the nonlinear preconditioner to be used.
Synopsis#
#include "petscsnes.h"
PetscErrorCode SNESSetNPC(SNES snes, SNES npc)
Collective
Input Parameters#
snes - iterative context obtained from
SNESCreate()
npc - the preconditioner object
Notes#
Use SNESGetNPC()
to retrieve the preconditioner context (for example,
to configure it using the API).
Only some SNESType
can use a nonlinear preconditioner
See Also#
SNES: Nonlinear Solvers, SNESNGS
, SNESFAS
, SNESGetNPC()
, SNESHasNPC()
Level#
developer
Location#
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages