3
<TITLE>Linear Solvers - SLES</TITLE>
5
<BODY BGCOLOR="FFFFFF">
7
<H2>Linear Solvers - SLES: <A HREF="../../../src/sles/examples/tutorials/index.html">Examples</A></H2>
9
The Scalable Linear Equations Solvers (SLES)
10
component provides an easy-to-use interface to the combination of
11
a Krylov subspace iterative method and a preconditioner (in the
12
<A HREF="../../../docs/manualpages/KSP/index.html">KSP</A> and
13
<A HREF="../../../docs/manualpages/PC/index.html">PC</A>
14
components, respectively) or a sequential direct solver.
15
SLES users can set various Krylov
16
and preconditioning options at runtime via the options database (e.g.,
17
<font face ="Courier">
18
-pc_type jacobi -ksp_type gmres
21
SLES users can also set KSP and PC options directly in application
22
codes by first extracting the KSP and/or PC context from the SLES context via
23
<A HREF="../../../docs/manualpages/SLES/SLESGetKSP.html">SLESGetKSP()</A>/
24
<A HREF="../../../docs/manualpages/SLES/SLESGetPC.html">SLESGetPC()</A>
25
and then directly calling the KSP and PC routines (e.g.,
26
<A HREF="../../../docs/manualpages/KSP/KSPSetType.html">KSPSetType()</A>/
27
<A HREF="../../../docs/manualpages/PC/PCSetType.html">PCSetType()</A>
29
Both KSP and PC components can be used directly to create and
30
destroy solvers; this is not needed for users but
31
is intended for library developers.
38
<a href="sles.c.html">sles.c</a><br>
40
<a href="makefile.html">makefile</a><br>