PetscErrorCode (*mult)(void*,Vec,Vec);
PetscErrorCode (*setup)(void*);
PCCreate(comm,&pc);
PCSetType(pc,PCSHELL);
PCShellSetApply(pc,apply);
PCShellSetApplyBA(pc,apply); (optional)
PCShellSetApplyTranspose(pc,apply); (optional)
PCShellSetContext(pc,ctx)
PCShellSetSetUp(pc,setup); (optional)
PCShellSetDestroy(pc,destroy); (optional)
Level:advanced
Location:src/ksp/pc/impls/shell/shellpc.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages