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))

Logically Collective

Input Parameters#

  • pc - the preconditioner context

  • setup - the application-provided setup routine

Calling sequence of setup#

PetscErrorCode setup(PC pc)

Note#

the function MUST return an error code of 0 on success and nonzero on failure.

See Also#

PCSHELL, PCShellSetApplyRichardson(), PCShellSetApply(), PCShellSetContext()

Level#

intermediate

Location#

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

Examples#

src/ksp/ksp/tutorials/ex15f.F90
src/ksp/ksp/tutorials/ex60.c

Implementations#

PCShellSetSetUp_Shell(PC pc, PetscErrorCode (*setup) in src/ksp/pc/impls/shell/shellpc.c


Edit on GitLab

Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages