tlm_adjoint

tlm_adjoint is a high-level algorithmic differentiation tool, principally for use with Firedrake.

The primary aim of tlm_adjoint is to enable higher order adjoint calculations – and in particular to compute Hessian information – while also using adjoint checkpointing schedules, and allowing for caching of assembled finite element data, and caching of linear solver data.

Features

  • Integrates with the Firedrake automated code generation library, and applies a high-level algorithmic differentiation approach to enable tangent-linear and adjoint calculations.

  • Applies a reverse-over-multiple-forward approach for higher order adjoint calculations. For example a Hessian action on some given direction is computed by deriving an adjoint associated with a combined forward/tangent-linear calculation.

  • Implements adjoint checkpointing schedules to enable large problems to be tackled.

  • Can apply automated finite element assembly and linear solver caching. Cached data can be reused across the forward, tangent-linear, and adjoint calculations.

  • Provides a simple ‘escape-hatch’ to enable parts of the problem, not otherwise supported by tlm_adjoint or the backend library, to be added, with adjoint or tangent-linear information defined manually.

Examples

The following Jupyter notebooks introduce derivative calculations using tlm_adjoint.

Source and license

The source code is available from the tlm_adjoint GitHub repository. tlm_adjoint is licensed under the GNU LGPL version 3.

Indices