A collection of examples for LightKrylov

January 20, 2026 ยท View on GitHub

This repository contains a collection of examples illustrating various features of LightKrylov. A list of the different examples with a quick description is given below.

  • spmv : Showcases the low overhead incurred by LightKrylov's abstract object-oriented programming using a large sparse matrix-vector product as illustration.

  • poisson : Showcases how to implement a simple MPI-based Poisson solver for the regular 5-points finite-difference discretization of the Laplace operator on the unit-square.

  • neklab : Showcases how LightKrylov can be integrated into an already existing relatively large code base. The example computes the (unstable) steady solution of the nonlinear incompressible Navier-Stokes equations as well as the leading eigenpairs of the associated linearized operator.