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#

src/ksp/pc/impls/shell/shellpc.c

Examples#

src/ksp/ksp/tutorials/ex15.c
src/ksp/ksp/tutorials/ex15f.F90
src/ksp/pc/tutorials/ex4.c
src/ksp/ksp/tutorials/ex60.c

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