#include "petscsnes.h" PetscErrorCode SNESShellSetSolve(SNES snes,PetscErrorCode (*solve)(SNES,Vec))Logically Collective on SNES
snes | - the nonlinear solver context | |
apply | - the Section 1.5 Writing Application Codes with PETSc-provided solver routine |
PetscErrorCode apply (SNES snes,Vec xout)
snes | - the preconditioner, get the Section 1.5 Writing Application Codes with PETSc context with SNESShellGetContext() | |
xout | - solution vector |