Krylov Solvers

Introduction

A finite element discretization of elliptic or parabolic equations leads to large sparse linear equation systems \( Ax=b \). To solve such a system, an iterative solver may be a choice among others (see section Solvers). Kaskade 7 provides, on top of the Dune solvers, a unified conjugate gradient (CG) family and an Uzawa solver for saddle-point problems.

Dune solvers

Kaskade 7 works with the iterative solvers from Dune, for example Dune::BiCGSTABSolver<LinearSpaceX> and Dune::RestartedGMResSolver<LinearSpaceX>. These are useful for nonsymmetric systems, where CG is not applicable.

Conjugate gradient methods

For symmetric positive definite operators \( A: X \rightarrow X^* \), Kaskade 7 provides the class template Kaskade::CG in linalg/cg.hh. It replaces the former Pcg class, which was removed in Kaskade 7.8. The header also provides the variants

  • CG: standard preconditioned conjugate gradient method,
  • TCG: truncated CG for nonconvex problems, stopping at a direction of negative curvature,
  • RCG: regularized CG, implicitly regularizing the operator when negative curvature is detected,
  • HCG: hybrid CG, combining truncation and regularization.

A typical usage with an assembled Galerkin operator A, a preconditioner M, a dual pairing dp, and a termination criterion term is

#include "linalg/cg.hh"
[...]
CG<X,X> cg(A,M,dp,term,verbosity);
cg.apply(x,b,res);

The termination criteria are provided in linalg/cgTerminationCriteria.hh. Besides PCGEnergyErrorTerminationCriterion, which controls the energy norm of the CG step, there are StrakosTichyEnergyErrorTerminationCriterion and StrakosTichyPTerminationCriterion based on the Strakos–Tichý error estimates, and PCGCountingTerminationCriterion, which stops after a fixed number of iterations.

Uzawa

For symmetric saddle-point systems such as the Stokes system or KKT systems from optimal control, Kaskade 7 provides an inexact Uzawa solver in linalg/uzawa.hh. It solves the Schur complement system iteratively and uses an inner solver (typically CG) for the primal block. See the Stokes example for a complete usage example.

Use iterative solver with preconditioner

For an operator \( A: X \rightarrow X^* \), a preconditioner is an operator \( M^{-1}: X^* \rightarrow X \) used to solve the transformed system \( M^{-1} A x = M^{-1} b \). A good preconditioner for CG should be symmetric positive definite and approximate \( A^{-1} \) well. Very popular choices are incomplete factorizations such as ILU(0) and its extensions ILU(k) and ILU(t) for sparse matrices.

enum class PrecondType { NONE, JACOBI, PARTIAL, ILUT, ILUK, ARMS, INVERSE, ADDITIVESCHWARZ,
                   BOOMERAMG, EUCLID, TRILINOSML, SSOR, ICC0, ICC, ILUKS, HB, DIRECT };
preconditioner description
NONE creates a trivial (identity) preconditioner, i.e. no preconditioning takes place
JACOBI a simple single-level Jacobi preconditioner, consisting of just the diagonal \( D = diag(A) \) of the matrix \( A \); efficient for diagonally dominant matrices
PARTIAL deprecated
ILUT ILU preconditioner with threshold; preconditioner from Saad’s ITSOL library for sparse linear systems, extends the ILU(0) factorization \( A = LU + E \) where \( L \) and \( U \) have the same nonzero structure as the lower/upper parts of \( A \), but without a concept of level of fill-in, see [1]
ILUK ILU preconditioner with level of fill; preconditioner from Saad’s ITSOL library for sparse linear systems, extends the ILU(0) factorization with fill level k, see [2]
ARMS Algebraic Recursive Multilevel Solvers; preconditioner from Saad’s ITSOL library for sparse linear systems, based on multilevel partial elimination, see [3]
INVERSE sparse approximate inverse preconditioner
ADDITIVESCHWARZ additive Schwarz domain decomposition preconditioner
BOOMERAMG algebraic multigrid preconditioner from Hypre (BoomerAMG)
EUCLID parallel ILU preconditioner from Hypre
TRILINOSML multilevel preconditioner from Trilinos (if available)
SSOR symmetric successive over-relaxation preconditioner
ICC0 incomplete Cholesky factorization using only the sparsity pattern of \( A \)
ICC incomplete Cholesky factorization with a drop tolerance
ILUKS ILU(k) preconditioner for symmetric matrices
HB hierarchical basis preconditioner
DIRECT direct solver used as preconditioner

The availability of the preconditioners depends on the installed third-party libraries. The container images include ITSOL, Hypre, and the direct solvers, so the corresponding preconditioners are available there.

[1] Youcef Saad: “ILUT: A dual threshold incomplete LU factorization” (1994)
[2] Youcef Saad: “Iterative Methods for Sparse Linear Systems” (2003)
[3] Youcef Saad, Brian Suchomel: “ARMS: an algebraic recursive multilevel solver for general sparse linear systems” (2002)


Page last modified: 2026-11-10