PCShellSetApplyRichardson

Sets routine to use as preconditioner in Richardson iteration.

Synopsis

int PCShellSetApplyRichardson(PC pc, int (*apply)(void*,Vec,Vec,Vec,int),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 x,Vec b,Vec r,int maxits)

ptr - the application context
x - current iterate
b - right-hand-side
r - residual
maxits - maximum number of iterations

Keywords

PC, shell, set, apply, Richardson, user-provided

See Also

PCShellSetApply()

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