PCShellSetApply

Sets routine to use as preconditioner.

Synopsis

#include "pc.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()

Examples

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

Level:developer
Location:src/sles/pc/impls/shell/shellpc.c
PC Index
Table of Contents