KSPGetPC

Returns a pointer to the preconditioner context set with KSPSetPC().

Synopsis

#include "petscksp.h" 
int KSPGetPC(KSP ksp,PC *B)
Not Collective

Input Parameters

ksp -iterative context obtained from KSPCreate()

Output Parameter

B -preconditioner context

Keywords

KSP, get, preconditioner, Binv

See Also

KSPSetPC()

Level:developer
Location:
src/ksp/ksp/interface/itfunc.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/mat/examples/tutorials/ex3.c.html
src/ksp/pc/examples/tutorials/ex1.c.html
src/ksp/pc/examples/tutorials/ex2.c.html
src/ksp/examples/tutorials/ex1.c.html
src/ksp/examples/tutorials/ex7.c.html
src/ksp/examples/tutorials/ex8.c.html
src/ksp/examples/tutorials/ex10.c.html
src/ksp/examples/tutorials/ex12.c.html
src/ksp/examples/tutorials/ex13.c.html
src/ksp/examples/tutorials/ex15.c.html
src/ksp/examples/tutorials/ex23.c.html