#### Title

Finite difference of adjoint or adjoint of finite difference?

#### Document Type

Article

#### Publication Date

12-1-1997

#### Department

Marine Science

#### Abstract

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.

#### Publication Title

MONTHLY WEATHER REVIEW

#### Volume

125

#### Issue

12

#### First Page

3373

#### Last Page

3378

#### Recommended Citation

Sirkes, Z.,
Tziperman, E.
(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