Discontinuous Galerkin method on three-dimensional tetrahedral grids. The use of template metaprogramming of the C++ language


Cite item

Full Text

Open Access Open Access
Restricted Access Access granted
Restricted Access Subscription Access

Abstract

Many mathematical physics problems have great computational complexity, especially when they are solved on large-scale three-dimensional grids. The discontinuous Galerkin method is just an example of this kind. Therefore, reduction of the amount of computation is very a topical task. One of the possible ways to reduce the amount of computation is to move some of the computations to the compilation stage. With the appearance of templates, C++ provides such an opportunity. The paper demonstrates the use of template metaprogramming to speed up computations in the discontinuous Galerkin method. In addition, template metaprogramming sometimes simplifies the algorithm at the expense of its generalization.

About the authors

M. M. Krasnov

Keldysh Institute for Applied Mathematics

Author for correspondence.
Email: kmm@kiam.ru
Russian Federation, Miusskaya pl., 4, Moscow, 125047

M. E. Ladonkina

Keldysh Institute for Applied Mathematics

Email: kmm@kiam.ru
Russian Federation, Miusskaya pl., 4, Moscow, 125047

Supplementary files

Supplementary Files
Action
1. JATS XML

Copyright (c) 2017 Pleiades Publishing, Ltd.