  The Massachusetts Institute of Technology General Circulation Model (MITgcm)
is widely used by the climate science community to simulate planetary
atmosphere and ocean circulations. A defining feature of the MITgcm is that it
has been developed to be compatible with an algorithmic differentiation (AD)
tool, TAF, enabling the generation of tangent-linear and adjoint models. These
provide gradient information which enables dynamics-based sensitivity and
attribution studies, state and parameter estimation, and rigorous uncertainty
quantification. Importantly, gradient information is essential for computing
comprehensive sensitivities and performing efficient large-scale data
assimilation, ensuring that observations collected from satellites and in-situ
measuring instruments can be effectively used to optimize a large uncertain
control space. As a result, the MITgcm forms the dynamical core of a key data
assimilation product employed by the physical oceanography research community:
Estimating the Circulation and Climate of the Ocean (ECCO) state estimate.
Although MITgcm and ECCO are used extensively within the research community,
the AD tool TAF is proprietary and hence inaccessible to a large proportion of
these users. The new version 2 (MITgcm-AD v2) framework introduced here is
based on the source-to-source AD tool Tapenade, which has recently been
open-sourced. Another feature of Tapenade is that it stores required variables
by default (instead of recomputing them) which simplifies the implementation of
efficient, AD-compatible code. The framework has been integrated with the
MITgcm model main branch and is now freely available.
