SLESGetKSP

Returns the KSP context for a SLES solver.

Synopsis

#include "petscsles.h"    
int SLESGetKSP(SLES sles,KSP *ksp)
Not Collective, but if KSP will be a parallel object if SLES is

Input Parameter

sles -the SLES context

Output Parameter

ksp -the Krylov space context

Notes

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

Keywords

SLES, get, KSP, context

See Also

SLESGetPC()

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/ex2.c.html
src/sles/examples/tutorials/ex3.c.html
src/sles/examples/tutorials/ex7.c.html
src/sles/examples/tutorials/ex8.c.html
src/sles/examples/tutorials/ex9.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/ex6f.F.html