PCSHELL

Creates a new preconditioner class for use with your own private data storage format.

Usage

            int (*mult)(void *,Vec,Vec);
            int (*setup)(void *);
            PCCreate(comm,&pc);
            PCSetType(pc,PCSHELL);
            PCShellSetApply(pc,mult,ctx);
            PCShellSetSetUp(pc,setup);       (optional)

See Also

PCCreate(), PCSetType(), PCType (for list of available types), PC,
KSPSHELL(), MATSHELL(), PCShellSetUp(), PCShellSetApply(), PCShellSetView(), PCShellSetApplyTranpose(), PCShellSetName(), PCShellSetApplyRichardson(), PCShellGetName()

Level:advanced
Location:
src/sles/pc/impls/shell/shellpc.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sles/examples/tutorials/ex15.c.html
src/sles/examples/tutorials/ex15f.F.html
src/sles/examples/tutorials/ex21f.F.html
src/snes/examples/tutorials/ex6.c.html
src/snes/examples/tutorials/ex24.c.html