Accelerating linear solvers for Stokes problems with C++ metaprogramming

06/10/2020
by   Denis Demidov, et al.
0

The efficient solution of large sparse saddle point systems is very important in computational fluid mechanics. The discontinuous Galerkin finite element methods have become increasingly popular for incompressible flow problems but their application is limited due to high computational cost. We describe the C++ programming techniques that may help to accelerate linear solvers for such problems. The approach is based on the policy-based design pattern and partial template specialization, and is implemented in the open source AMGCL library. The efficiency is demonstrated with the example of accelerating an iterative solver of a discontinuous Galerkin finite element method for the Stokes problem. The implementation allows selecting algorithmic components of the solver by adjusting template parameters without any changes to the codebase. It is possible to switch the system matrix to use small statically sized blocks to store the nonzero values, or use a mixed precision solution, which results in up to 4 times speedup, and reduces the memory footprint of the algorithm by about 40%. We evaluate both monolithic and composite preconditioning strategies for the 3 benchmark problems. The performance of the proposed solution is compared with a multithreaded direct Pardiso solver and a parallel iterative PETSc solver.

READ FULL TEXT

page 11

page 12

page 14

research
09/15/2016

An object oriented parallel finite element scheme for computations of PDEs: Design and implementation

Parallel finite element algorithms based on object-oriented concepts are...
research
02/11/2016

Oasis: a high-level/high-performance open source Navier-Stokes solver

Oasis is a high-level/high-performance finite element Navier-Stokes solv...
research
11/06/2015

A quantitative performance analysis for Stokes solvers at the extreme scale

This article presents a systematic quantitative performance analysis for...
research
09/02/2020

Real-time implementation of an iterative solver for atmospheric tomography

The image quality of the new generation of earthbound Extremely Large Te...
research
10/26/2020

Textbook efficiency: massively parallel matrix-free multigrid for the Stokes system

We employ textbook multigrid efficiency (TME), as introduced by Achi Bra...
research
01/31/2023

A fast algebraic multigrid solver and accurate discretization for highly anisotropic heat flux I: open field lines

We present a novel solver technique for the anisotropic heat flux equati...

Please sign up or login with your details

Forgot password? Click here to reset