arrow
Return

Accelerating linear solvers for Stokes problems with C plus plus metaprogramming

delete2021-02-01
delete12
delete
OA
AI
D
Denis Demidov *
L
Lin Mu
王斌 cover
王斌 (Bin Wang)
DOI:10.1016/j.jocs.2020.101285delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
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 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 3 benchmark problems. The performance of the proposed solution is compared with a multithreaded direct Pardiso solver and a parallel iterative PETSc solver.
Keywords:
Stokes problem
C plus plus metaprogramming
Algebraic multigrid
Scalability
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Nature Computational Science cover
Nature Computational Science
IF:
18.3
Papers:
3.1K
Citations:
4.0K

Organization

U
university system of georgia
Scholars:
7.3W
Papers: 6.5W
Citations: 101
R
russian academy of sciences
Scholars:
9.1W
Papers: 6.0W
Citations: 60
U
University of Georgia
Scholars:
1.5W
Papers: 1.2W
Citations: 2.9W
researcher View more organizations