Preconditioners - PC: Examples
Scalable Linear Equations Solvers (KSP)
component provides an easy-to-use interface to the combination of
a Krylov subspace iterative method and a preconditioner (in the
KSP and PC
components, respectively) or a sequential direct solver.
KSP users can set various preconditioning
options at runtime via the options database (e.g.,
KSP users can also set PC options directly in application
codes by first extracting the PC context from the KSP context via
and then directly calling the PC routines listed below (e.g.,
PC components can be used directly to create and
destroy solvers; this is not needed for users but
is for library developers.
ex1.c: Test file for the PCFactorSetShiftType()\n
ex2.c: Test file for the PCFactorSetShiftType()\n