PCShellSetApply

Sets routine to use as preconditioner.

Synopsis

#include "petscpc.h" 
int PCShellSetApply(PC pc,int (*apply)(void*,Vec,Vec),void *ptr)
Collective on PC

Input Parameters

pc - the preconditioner context
apply - the application-provided preconditioning routine
ptr - pointer to data needed by this routine

Calling sequence of apply

   int apply (void *ptr,Vec xin,Vec xout)

ptr - the application context
xin - input vector
xout - output vector

Keywords

PC, shell, set, apply, user-provided

See Also

PCShellSetApplyRichardson(), PCShellSetSetUp(), PCShellSetApplyTranspose()

Level:developer
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