TSFC: a structure-preserving form compiler
read the original abstract
A form compiler takes a high-level description of the weak form of partial differential equations and produces low-level code that carries out the finite element assembly. In this paper we present the Two-Stage Form Compiler (TSFC), a new form compiler with the main motivation to maintain the structure of the input expression as long as possible. This facilitates the application of optimizations at the highest possible level of abstraction. TSFC features a novel, structure-preserving method for separating the contributions of a form to the subblocks of the local tensor in discontinuous Galerkin problems. This enables us to preserve the tensor structure of expressions longer through the compilation process than other form compilers. This is also achieved in part by a two-stage approach that cleanly separates the lowering of finite element constructs to tensor algebra in the first stage, from the scheduling of those tensor operations in the second stage. TSFC also efficiently traverses complicated expressions, and experimental evaluation demonstrates good compile-time performance even for highly complex forms.
This paper has not been read by Pith yet.
Forward citations
Cited by 1 Pith paper
-
Structure Matters: A Scale-Resolved Numerical Operando Approach for Lithium-Sulfur Batteries
A scale-resolved continuum model with Discontinuous Galerkin discretization, adaptive time stepping, and scaling-based parameter transfer is introduced to simulate and analyze the effect of cathode porosity on lithium...
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.