Creates a nonlinear preconditioning solver (SNES) to be used to precondition the nonlinear solver.
PetscErrorCode SNESGetNPC(SNES snes, SNES *pc)
Not Collective; but any changes to the obtained SNES object must be applied collectively
snes -iterative context obtained from SNESCreate()
pc -preconditioner context
-npc_snes_type <type> -set the type of the SNES to use as the nonlinear preconditioner
If a SNES was previously set with SNESSetNPC() then that SNES is returned, otherwise a new SNES object is created.
The (preconditioner) SNES returned automatically inherits the same nonlinear function and Jacobian supplied to the original
SNES during SNESSetUp()
SNESSetNPC(), SNESHasNPC(), SNES, SNESCreate()
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages