Recipes for adjoint code construction
- 1 December 1998
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Mathematical Software
- Vol. 24 (4), 437-474
- https://doi.org/10.1145/293686.293695
Abstract
Adjoint models are increasingly being developed for use in meteorology and oceanography. Typical applications are data assimilation, model tuning, sensitivity analysis, and determination of singular vectors. The adjoint model computes the gradient of a cost function with respect to control variables. Generation of adjoint code may be seen as the special case of differentiation of algorithms in reverse mode, where the dependent function is a scalar. The described method for adjoint code generation is based on a few basic principles, which permits the establishment of simple construction rules for adjoint statements and complete adjoint subprograms. These rules are presented and illustrated with some examples. Conflicts that occur due to loops and redefinition of variables are also discussed. Direct coding of the adjoint of a more sophisticated model is extremely time consuming and subject to errors. Hence, automatic generation of adjoint code represents a distinct advantage. An implementation of the method, described in this article, is the tangent linear and adjoint model compiler (TAMC).Keywords
This publication has 20 references indexed in Scilit:
- Sensitivity of the seasonal cycle of CO2 at remote monitoring stations with respect to seasonal surface exchange fluxes determined with the adjoint of an atmospheric transport modelPhysics and Chemistry of the Earth, 1996
- Achieving logarithmic growth of temporal and spatial complexity in reverse automatic differentiationOptimization Methods and Software, 1992
- Automatic differentiation and iterative processesOptimization Methods and Software, 1992
- Data assimilation into a numerical equatorial ocean model. I. The model and the assimilation algorithmDynamics of Atmospheres and Oceans, 1989
- The Kalman smoother for a linear quasi-geostrophic model of ocean circulationDynamics of Atmospheres and Oceans, 1989
- Meteorological data assimilation for oceanographers. Part I: Description and theoretical frameworkDynamics of Atmospheres and Oceans, 1989
- Dependence Analysis for SupercomputingPublished by Springer Science and Business Media LLC ,1988
- Variational Assimilation of Meteorological Observations With the Adjoint Vorticity Equation. Ii: Numerical ResultsQuarterly Journal of the Royal Meteorological Society, 1987
- The complexity of partial derivativesTheoretical Computer Science, 1983
- Sensitivity theory for nonlinear systems. I. Nonlinear functional analysis approachJournal of Mathematical Physics, 1981