Running error bounds in finite element kernels
Abstract
Rounding errors in finite element computations can lead to a complete loss of accuracy, stalled convergence, and incorrect results. Moreover, the effects of rounding errors accumulated within automatically generated and compiled kernels are difficult to analyze a priori. We present the first software framework for automated rounding error estimation within finite element kernels. The proposed methodology is based on an a posteriori technique called Running Error Analysis (REA), where a forward error estimate is automatically computed concurrently with the value. An open-source implementation is provided for the FEniCS Form Compiler (FFCx), based on a C++ backend for generating type-generic templated kernels over a custom arithmetic type that tracks both the value and its error estimate. We demonstrate REA on two examples. First, we use it to detect catastrophic cancellation in the assembly of a Neo-Hooke hyperelastic model in the small deformation regime. A series expansion circumvents the cancellation problem and the computed error estimates show this. Second, we study the assembly of the Laplace operator on a near-degenerate mesh. We demonstrate that our REA implementation typically incurs only 2-4x performance overhead. Applications of this work include robust reduced-precision computations in embedded systems, numerical debugging of new, possibly ill-conditioned or unstable PDE formulations, and guiding the design of mixed-precision kernels.
Create a lesson
Metadata
- Categories
- math.NA, cs.MS, cs.NA
- Comments
- 18 pages
Related papers
A posteriori error estimates based on local residual minimization for weakly symmetric mixed finite element discretizations of linear elasticity
Shared title terminologymath.NAErnesto Cáceres, Patrick Vega
Finite element error estimates for a bilinear optimal control problem with pointwise tracking governed by a semilinear elliptic PDE
Shared title terminologymath.NAEnrique Otarola, Daniel Quero, Matias Sasso
Finite-Data Error Bounds for Approximating the Koopman Operator: Sampling Measures, Super-Polynomial Convergence and Regularization
Shared title terminologymath.NADaniel Fassler, Rachel Morris, Jason Bramburger et al.
Error analysis of penalized H({\rm div})-conforming finite element methods for surface Stokes problems
Shared title terminologymath.NAAlan Demlow, Orsan Kilicer
Mesh sensitivity and convergence of the finite element material derivative for the Stokes problem
Shared title terminologymath.NAJulius Fergy Tiongson Rabago, Hirofumi Notsu
Optimal rational approximation with anisotropic adaptive finite elements for the spectral fractional Helmholtz equation
Shared title terminologymath.NAYoungho Min, Young Ju Lee, Seungil Kim