PCShellSetSetUp#
Sets routine to use to “setup” the preconditioner whenever the matrix operator is changed.
Synopsis#
#include "petscpc.h"
PetscErrorCode PCShellSetSetUp(PC pc, PetscErrorCode (*setup)(PC pc))
Logically Collective
Input Parameters#
pc - the preconditioner context
setup - the application-provided setup routine
Calling sequence of setup
#
pc - the preconditioner
Note#
You can get the PCSHELL
context set with PCShellSetContext()
using PCShellGetContext()
if needed by setup
.
See Also#
KSP: Linear System Solvers, PCSHELL
, PCShellSetApplyRichardson()
, PCShellSetApply()
, PCShellSetContext()
, , PCShellGetContext()
Level#
intermediate
Location#
Examples#
src/ksp/ksp/tutorials/ex15.c
src/ksp/ksp/tutorials/ex60.c
src/ksp/ksp/tutorials/ex15f.F90
Implementations#
PCShellSetSetUp_Shell(PC pc, PetscErrorCode (*setup)() in src/ksp/pc/impls/shell/shellpc.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages