SLESGetPC

Returns the preconditioner (PC) context for a SLES solver.

Synopsis

#include "petscsles.h"    
int SLESGetPC(SLES sles,PC *pc)
Not Collective, but if PC will be a parallel object if SLES is

Input Parameter

sles -the SLES context

Output Parameter

pc -the preconditioner context

Notes

The user can then directly manipulate the PC context to set various options (e.g., by calling PCSetType()), etc.

Keywords

SLES, get, PC, context

See Also

SLESGetKSP()

Level:beginner
Location:
src/sles/interface/sles.c
Index of all SLES routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sles/examples/tutorials/ex1.c.html
src/sles/examples/tutorials/ex7.c.html
src/sles/examples/tutorials/ex8.c.html
src/sles/examples/tutorials/ex10.c.html
src/sles/examples/tutorials/ex12.c.html
src/sles/examples/tutorials/ex13.c.html
src/sles/examples/tutorials/ex15.c.html
src/sles/examples/tutorials/ex23.c.html
src/sles/examples/tutorials/ex1f.F.html
src/sles/examples/tutorials/ex2f.F.html
src/sles/examples/tutorials/ex13f90.F.html