Finite difference of adjoint or adjoint of finite difference?
Adjoint models are used for atmospheric and oceanic sensitivity studies in order to efficiently evaluate the sensitivity of a cost function (e.g., the temperature or pressure at some target time t(f), averaged over some region of interest) with respect to the three-dimensional model initial conditions. The time-dependent sensitivity, that is the sensitivity to initial conditions as function of the initial time t(i), may be obtained directly and most efficiently from the adjoint model solution. There are two approaches to formulating an adjoint of a given model. In the first (''finite difference of adjoint''), one derives the continuous adjoint equations from the linearized continuous forward model equations and then formulates the finite-difference implementation of the continuous adjoint equations. In the second (''adjoint of finite difference''), one derives the finite-difference adjoint equations directly from the finite difference of the forward model. It is shown here that the time-dependent sensitivity obtained by using the second approach may result in a very strong nonphysical behavior such as a large-amplitude two-time-step leapfrog computational mode, which may prevent the solution from being used for time-dependent sensitivity studies. This is an especially relevant problem now, as this second approach is the one used by automatic adjoint compilers that are becoming widely used. The two approaches are analyzed in detail using both a simple model and the adjoint of a primitive equations ocean general circulation model. It is emphasized that both approaches are valid as long as they are used for obtaining the gradient or sensitivity at a single time, as needed in data assimilation, for example. Criteria are presented for the choice of the appropriate adjoint formulation for a given problem.
MONTHLY WEATHER REVIEW
(1997). Finite difference of adjoint or adjoint of finite difference?. MONTHLY WEATHER REVIEW, 125(12), 3373-3378.
Available at: http://aquila.usm.edu/fac_pubs/5464