SNESShellSetSolve#
Sets routine to apply as solver
Synopsis#
#include "petscsnes.h"
PetscErrorCode SNESShellSetSolve(SNES snes, PetscErrorCode (*solve)(SNES, Vec))
Logically Collective
Input Parameters#
snes - the
SNES
nonlinear solver contextapply - the application-provided solver routine
Calling sequence of apply
#
PetscErrorCode apply(SNES snes, Vec xout)
snes - the preconditioner, get the application context with
SNESShellGetContext()
provided withSNESShelletContext()
xout - solution vector
See Also#
Level#
advanced
Location#
Examples#
Implementations#
SNESShellSetSolve_Shell(SNES snes, PetscErrorCode (*solve) in src/snes/impls/shell/snesshell.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages