We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Computer Science & Information Technology/Recipes for adjoint code construction
PeriodicalsComputer Science & Information Technology

Recipes for adjoint code construction

Checking your access to this record.

Abstract & Overview

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).

Cite this record

Ralf Giering, T. Kaminski (1998). Recipes for adjoint code construction. ACM Transactions on Mathematical Software, 24(4), 437–474. https://doi.org/10.1145/293686.293695

Copy in another style

Giering, R., & Kaminski, T. (1998). Recipes for adjoint code construction. ACM Transactions on Mathematical Software, 24(4), 437–474. https://doi.org/10.1145/293686.293695
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.