Automated code generation for discontinuous galerkin methods
Journal article, 2008

A compiler approach for generating low-level computer code from high-level input for discontinuous Galerkin finite element forms is presented. The input language mirrors conventional mathematical notation, and the compiler generates efficient code in a standard programming language. This facilitates the rapid generation of efficient code for general equations in varying spatial dimensions. Key concepts underlying the compiler appr oach and the automated generation of computer code are elaborated. The approach is demonstrated for a range of common problems, including the Poisson, biharmonic, advection-diffusion, and Stokes equations. © 2008 Society for Industrial and Applied Mathematics.

Variational forms

Finite element

Code generation

Discontinuous galerkin methods

Form compiler


K.B. Ølgaard

Anders Logg

University of Gothenburg

Chalmers, Mathematical Sciences, Mathematics

G.N. Wells

SIAM Journal of Scientific Computing

1064-8275 (ISSN) 1095-7197 (eISSN)

Vol. 31 2 849-864

Subject Categories


Computational Mathematics



More information