/[MITgcm]/MITgcm_contrib/articles/ceaice/ceaice_adjoint.tex
ViewVC logotype

Contents of /MITgcm_contrib/articles/ceaice/ceaice_adjoint.tex

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download) (as text)
Mon Jul 28 04:34:37 2008 UTC (16 years, 11 months ago) by heimbach
Branch: MAIN
Changes since 1.5: +124 -95 lines
File MIME type: application/x-tex
o Rewrite of 4.3 (not finished).
o change title slightly

1 \section{Adjoint sensitivities of the MITsim}
2 \label{sec:adjoint}
3
4 \subsection{The adjoint of MITsim}
5
6 The adjoint model of the MITgcm has become an invaluable
7 tool for sensitivity analysis as well as state estimation \citep[for a
8 recent summary, see][]{heim:08}. The code has been developed and
9 tailored to be readily used with automatic differentiation tools for
10 adjoint code generation. This route was also taken in developing and
11 adapting the sea-ice compontent MITsim, so that tangent linear and
12 adjoint components can be obtained and kept up to date without
13 excessive effort.
14
15 The adjoint model operator (ADM) is the transpose of the tangent
16 linear model operator (TLM) of the full (in general nonlinear) forward
17 model, in this case the MITsim. This operator computes the gradients
18 of scalar-valued model diagnostics (so-called cost function or
19 objective function) with respect to many model inputs (so-called
20 independent or control variables). These inputs can be two- or
21 three-dimensional fields of initial conditions of the ocean or sea-ice
22 state, model parameters such as mixing coefficients, or time-varying
23 surface or lateral (open) boundary conditions. When combined, these
24 variables span a potentially high-dimensional (e.g. O(10$^8$))
25 so-called control space. At this problem dimension, perturbing
26 individual parameters to assess model sensitivities quickly becomes
27 prohibitive. By contrast, transient sensitivities of the objective
28 function to any element of the control and model state space can be
29 computed very efficiently in one single adjoint model integration,
30 provided an adjoint model is available.
31
32 In anology to the TLM and ADM components of the MITgcm we rely on the
33 autmomatic differentiation (AD) tool ``Transformation of Algorithms in
34 Fortran'' (TAF) developed by Fastopt \citep{gier-kami:98} to generate
35 TLM and ADM code of the MITsim \citep[for details see][]{maro-etal:99,
36 heim-etal:05}. In short, the AD tool uses the nonlinear parent
37 model code to generate derivative code for the specified control space
38 and objective function. Advantages of this approach have been pointed
39 out, for example by \cite{gier-kami:98}.
40
41 Many issues of generating efficient exact adjoint sea-ice code are
42 similar to those for the ocean model's adjoint. Linearizing the model
43 around the exact nonlinear model trajectory is a crucial aspect in the
44 presence of different regimes (e.g., is the thermodynamic growth term
45 for sea-ice evaluated near or far away from the freezing point of the
46 ocean surface?). Adapting the (parent) model code to support the AD
47 tool in providing exact and efficient adjoint code represents the main
48 work load initially. For legacy code, this task may become
49 substantial, but it is fairly straightforward when writing new code
50 with an AD tool in mind. Once this initial task is completed,
51 generating the adjoint code of a new model configuration takes about
52 10 minutes.
53
54 [HIGHLIGHT COUPLED NATURE OF THE ADJOINT!]
55
56 \subsection{Special considerations}
57
58 * growth term(?)
59
60 * small active denominators
61
62 * dynamic solver (implicit function theorem)
63
64 * approximate adjoints
65
66
67 \subsection{An example: sensitivities of sea-ice export through
68 the Lancaster Sound}
69
70 We demonstrate the power of the adjoint method in the context of
71 investigating sea-ice export sensitivities through Lancaster Sound.
72 The rationale for doing so is to complement the analysis of sea-ice
73 dynamics in the presence of narrow straits. Lancaster Sound is one of
74 the main paths of sea-ice flowing through the Canadian Arctic
75 Archipelago (CAA). Export sensitivities reflect dominant pathways
76 through the CAA as resolved by the model. Sensitivity maps can shed a
77 very detailed light on various quantities affecting the sea-ice export
78 (and thus the underlying pathways). Note that while the dominant
79 circulation through Lancaster Sound is toward the East, there is a
80 small Westward flow to the North, hugging the coast of Devon Island
81 \citep{mell:02, mich-etal:06,muen-etal:06}, which is not resolved in
82 our simulation.
83
84 The model domain is the same as the one described in \refsec{forward},
85 but with halved horizontal resolution.
86 The adjoint models run efficiently on 80 processors (as validated
87 by benchmarks on both an SGI Altix and an IBM SP5 at NASA/ARC).
88 Following a 4-year spinup (1985 to 1988), the model is integrated for four
89 years and nine months between January 1989 and September 1993.
90 It is forced using realistic 6-hourly NCEP/NCAR atmospheric state variables.
91 %Over the open ocean these are
92 %converted into air-sea fluxes via the bulk formulae of
93 %\citet{large04}. The air-sea fluxes in the presence of
94 %sea-ice are handled by the ice model as described in \refsec{model}.
95 The objective function $J$ is chosen as the ``solid'' fresh water
96 export, that is the export of ice and snow converted to units of fresh
97 water,
98 %
99 \begin{equation}
100 J \, = \, (\rho_{i} h_{i}c + \rho_{s} h_{s}c)\,u
101 \end{equation}
102 %
103 through Lancaster Sound at approximately 82\degW\ (cross-section G in
104 \reffig{arctic_topog}) averaged \ml{PH: Maybe integrated quantity is
105 more physical} over the final 12-month of the integration between October
106 1992 and September 1993.
107
108 The forward trajectory of the model integration resembles broadly that
109 of the model in \refsec{forward}. Many details are different, owning
110 to different resolution and integration period; for example, the solid
111 fresh water transport through Lancaster Sound is
112 %
113 \ml{PH: Martin, where did you get these numbers from?}
114 %
115 $116\pm101\text{\,km$^{3}$\,y$^{-1}$}$ for a free slip simulation with
116 the C-LSOR solver, but only $39\pm64\text{\,km$^{3}$\,y$^{-1}$}$ for a
117 no slip simulation.
118
119 The adjoint model is the transpose of the tangent linear (or Jacobian) model
120 operator. It runs backward in time, from September 1993 to
121 January 1989. Along its integration it accumulates the Lagrange multipliers
122 of the model subject to the objective function (solid freshwater export),
123 which can be interpreted as sensitivities of the objective function
124 to each control variable and each element of the intermediate
125 coupled model state variables.
126 Thus, all sensitivity elements of the coupled
127 ocean/sea-ice model state as well as the surface atmospheric state are
128 available for analysis of the transient sensitivity behavior. Over the
129 open ocean, the adjoint of the bulk formula scheme computes
130 sensitivities to the time-varying atmospheric state. Over ice-covered
131 parts, the sea-ice adjoint converts surface ocean sensitivities to
132 atmospheric sensitivities.
133
134 DISCUSS FORWARD STATE, INCLUDING SOME NUMBERS ON SEA-ICE EXPORT
135
136 \subsubsection{Adjoint sensitivities}
137
138 The most readily interpretable ice-export sensitivity is that to
139 effective ice thickness, $\partial{J} / \partial{(hc)}$.
140 \reffig{adjheff} shows transient $\partial{J} / \partial{(hc)}$ using
141 free-slip (left column) and no-slip (right column) boundary
142 conditions. Sensitivity snapshots are depicted for beginning of October 2002,
143 i.e. 12 months back in time from September 1993
144 (the beginning of the averaging period for the objective
145 function $J$, top),
146 and for Jannuary 1989, the beginning of the forward integration (bottom).
147 \begin{figure*}[t]
148 \includegraphics*[width=\textwidth]{\fpath/adjheff}
149 \caption{Sensitivity $\partial{J}/\partial{(hc)}$ in
150 m$^2$\,s$^{-1}$/m for two different times (rows) and two different
151 boundary conditions for sea ice drift. The color scale is chosen
152 to illustrate the patterns of the sensitivities; the maximum and
153 minimum values are given above the figures.
154 \label{fig:adjheff}}
155 \end{figure*}
156
157 As expected, the sensitivity patterns are predominantly positive,
158 an increase in ice volume in most places ``upstream'' of
159 Lancaster sound increases the solid fresh water export at the exit section.
160 Also obvious is the transient nature of the sensitivity patterns
161 (top panels vs. bottom panels),
162 i.e. as time moves backward, an increasing area upstream of Lancaster Sound
163 contributes to the export sensitivity.
164 The dominant pathway (free slip case) follows (backward in time)
165 through Barrow Strait
166 into Viscount Melville Sound, and from there trough M'Clure Strait
167 into the Arctic Ocean (the ``Northwest Passage'').
168 Secondary paths are Northward from
169 Viscount Melville Sound through Byam Martin Channel into
170 Prince Gustav Adolf Sea and through Penny Strait into MacLean Strait.
171
172 The difference between the free slip and no slip solution is evident:
173 by the end of the adjoint integration, in January 1989
174 the free-slip sensitivities (bottom left) extend through most of the CAA
175 and all the way into the Arctic interior, both to the West (M'Clure St.)
176 and to the North
177 (Ballantyne St., Prince Gustav Adolf Sea, Massey Sound),
178 whereas the no slip sensitivities (bottom right) are overall weaker
179 and remain mostly confined to Lancaster Sound and just West of Barrow Strait.
180 In the free slip solution ice can drift more
181 easily through narrow straits, and
182 a positive ice volume anomaly further upstream in the CAA may increase
183 ice export through the Lancaster Sound within a 4 year period.
184
185 One peculiar feature in the October 1992 sensitivity maps (top panels)
186 are the negative sensivities to the East and to the West.
187 These can be explained by indirect effects: less ice to the East means
188 less resistance to eastward drift and thus more export; similarly, less ice to
189 the West means that more ice can be moved eastwards from the Barrow Strait
190 into the Lancaster Sound leading to more ice export.
191 \ml{PH: The first explanation (East) I buy, the second (West) I don't}.
192
193 The temporal evolution of several ice export sensitivities
194 (eqn. XX) along a zonal axis through
195 Lancaster Sound, Barrow Strait,and Melville Sound
196 (115\degW\ to 80\degW\ ),
197 are depicted as Hovmueller diagrams in \reffig{lancaster}.
198 From top to bottom, sensitivities are with respect to effective
199 ice thickness ($hc$),
200 ocean surface temperature ($SST$) and precipitation ($p$) for free slip
201 (left column) and no slip (right column) ice drift boundary conditions.
202 %
203 \begin{figure*}
204 \includegraphics*[height=.8\textheight]{\fpath/lancaster_adj}
205 \caption{Hovermoeller diagrams of sensitivities (derivatives) of the
206 ``solid'' fresh water (i.e., ice and snow) export $J$ through Lancaster sound
207 (\reffig{arctic_topog}, cross-section G) with respect to effective
208 ice thickness ($hc$), ocean surface temperature (SST) and
209 precipitation ($p$) for two runs with free slip and no slip boundary
210 conditions for the sea ice drift. Also shown it the normalized ice
211 strengh $P/P^*=(hc)\,\exp[-C\,(1-c)]$ (bottom panel); each plot is
212 overlaid with the contours 1 and 3 of the normalized ice strength
213 for orientation.
214 \label{fig:lancaster}}
215 \end{figure*}
216 %
217
218 The Hovmoeller diagrams of ice thickness (top row) and sea surface temperature
219 (second row) sensitivities are coherent:
220 more ice in the Lancaster Sound leads
221 to more export, and one way to get more ice is by colder surface
222 temperatures (less melting from below). In the free slip case the
223 sensitivities spread out in "pulses" following a seasonal cycle:
224 can propagate westwards (backwards in time) when the ice
225 strength is low in late summer, early autumn.
226 In contrast, during winter, the sensitivities show little to now
227 westward propagation.
228 In the no slip case the (normalized)
229 ice strength does not fall below 1 during the winters of 1991 to 1993
230 (mainly because the ice concentrations remain nearly 100\%, not
231 shown). Ice is therefore blocked and cannot drift eastwards
232 (forward in time) through the
233 Melville Sound, Barrow Strait, Lancaster Sound channel system.
234 Consequently, the sensitivities do not propagate westwards (backwards in
235 time) and the export through Lancaster Sound is only affected by
236 local ice formation and melting for the entire integration period.
237
238 The sensitivities to precipitation exhibit an oscillatory behaviour:
239 they are negative (more precipitation leads to less export)
240 before January (more precisely, late fall) and mostly positive after January
241 (more precisely, January through July).
242 Times of positive sensitivities coincide with times of
243 normalized ice strengths exceeding values of 3.
244 %
245 \ml{PH: Problem is, that's not true for the first two years (backward),
246 East of 95\degW\ , i.e. in Lancaster Sound.
247 For example, at 90\degW\ the sensitivities are negative throughout 1992,
248 and no clear correlation to ice strength is apparent there.}.
249 %
250 Assuming that most precipation is snow in this area
251 %
252 \footnote{
253 In the
254 current implementation the model differentiates between snow and rain
255 depending on the thermodynamic growth rate; when it is cold enough for
256 ice to grow, all precipitation is assumed to be snow.}
257 %
258 the sensitivities can be interpreted in terms of the model physics. Short
259 wave radiation cannot penetrate the snow cover and has a higer albedo
260 than ice (0.85 for dry snow and 0.75 for dry ice in our case); thus it
261 protects the ice against melting in spring (after January).
262 \ml{PH: what about the direct effect of accumulation of precip. as snow
263 which directly increases the volume.}.
264
265 On the other hand, snow reduces the effective conductivity and thus the heat
266 flux through the ice. This insulating effect slows down the cooling of
267 the surface water underneath the ice and limits the ice growth from
268 below, so that less snow in the ice-growing season leads to more new
269 ice and thus more ice export.
270 \ml{PH: Should probably discuss the effect of snow vs. rain.
271 To me it seems that the "rain" effect doesn't really play
272 because the neg. sensitivities are too late in the fall,
273 probably mostly falling as snow.}.
274
275 %Und jetzt weiss ich nicht mehr weiter, aber nun kann folgendes passiert sein:
276 %1. snow insulates against melting from above during spring: more precip (snow) -> more export
277 %2. less snow during fall -> more ice -> more export
278 %3. precip is both snow and rain, depending on the sign of "FICE" (thermodynamic growth rate), with probably different implications
279
280
281 \subsubsection{Forward sensitivities}
282
283 \ml{[Here we need for integrations to show that the adjoint
284 sensitivites are not just academic. I suggest to perturb HEFF
285 and THETA initial conditions, and PRECIP somewhere in the Melville
286 Sound and then produce plots similar to reffig{lancaster}. For
287 PRECIP it would be great to have two perturbation experiments, one
288 where ADJprecip is posivite and one where ADJprecip is negative]}
289
290
291 %(*)
292 %The sensitivity in Baffin Bay are more complex.
293 %The pattern evolves along the Western boundary, connecting
294 %the Lancaster Sound Polynya, the Coburg Island Polynya, and the
295 %North Water Polynya, and reaches into Nares Strait and the Kennedy Channel.
296 %The sign of sensitivities has an oscillatory character
297 %[AT FREQUENCY OF SEASONAL CYCLE?].
298 %First, we need to establish whether forward perturbation runs
299 %corroborate the oscillatory behaviour.
300 %Then, several possible explanations:
301 %(i) connection established through Nares Strait throughflow
302 %which extends into Western boundary current in Northern Baffin Bay.
303 %(ii) sea-ice concentration there is seasonal, i.e. partly
304 %ice-free during the year. Seasonal cycle in sensitivity likely
305 %connected to ice-free vs. ice-covered parts of the year.
306 %Negative sensitivities can potentially be attributed
307 %to blocking of Lancaster Sound ice export by Western boundary ice
308 %in Baffin Bay.
309 %(iii) Alternatively to (ii), flow reversal in Lancaster Sound is a possibility
310 %(in reality there's a Northern counter current hugging the coast of
311 %Devon Island which we probably don't resolve).
312
313 %Remote control of Kennedy Channel on Lancaster Sound ice export
314 %seems a nice test for appropriateness of free-slip vs. no-slip BCs.
315
316 %\paragraph{Sensitivities to the sea-ice area}
317
318 %Fig. XXX depcits transient sea-ice export sensitivities
319 %to changes in sea-ice concentration
320 % $\partial J / \partial area$ using free-slip
321 %(left column) and no-slip (right column) boundary conditions.
322 %Sensitivity snapshots are depicted for (from top to bottom)
323 %12, 24, 36, and 48 months prior to May 2003.
324 %Contrary to the steady patterns seen for thickness sensitivities,
325 %the ice-concentration sensitivities exhibit a strong seasonal cycle
326 %in large parts of the domain (but synchronized on large scale).
327 %The following discussion is w.r.t. free-slip run.
328
329 %(*)
330 %Months, during which sensitivities are negative:
331 %\\
332 %0 to 5 Db=N/A, Dr=5 (May-Jan) \\
333 %10 to 17 Db=7, Dr=5 (Jul-Jan) \\
334 %22 to 29 Db=7, Dr=5 (Jul-Jan) \\
335 %34 to 41 Db=7, Dr=5 (Jul-Jan) \\
336 %46 to 49 D=N/A \\
337 %%
338 %These negative sensitivities seem to be connected to months
339 %during which main parts of the CAA are essentially entirely ice-covered.
340 %This means that increase in ice concentration during this period
341 %will likely reduce ice export due to blocking
342 %[NEED TO EXPLAIN WHY THIS IS NOT THE CASE FOR dJ/dHEFF].
343 %Only during periods where substantial parts of the CAA are
344 %ice free (i.e. sea-ice concentration is less than one in larger parts of
345 %the CAA) will an increase in ice-concentration increase ice export.
346
347 %(*)
348 %Sensitivities peak about 2-3 months before sign reversal, i.e.
349 %max. negative sensitivities are expected end of July
350 %[DOUBLE CHECK THIS].
351
352 %(*)
353 %Peaks/bursts of sensitivities for months
354 %14-17, 19-21, 27-29, 30-33, 38-40, 42-45
355
356 %(*)
357 %Spatial "anti-correlation" (in sign) between main sensitivity branch
358 %(essentially Northwest Passage and immediate connecting channels),
359 %and remote places.
360 %For example: month 20, 28, 31.5, 40, 43.
361 %The timings of max. sensitivity extent are similar between
362 %free-slip and no-slip run; and patterns are similar within CAA,
363 %but differ in the Arctic Ocean interior.
364
365 %(*)
366 %Interesting (but real?) patterns in Arctic Ocean interior.
367
368 %\paragraph{Sensitivities to the sea-ice velocity}
369
370 %(*)
371 %Patterns of ADJuice at almost any point in time are rather complicated
372 %(in particular with respect to spatial structure of signs).
373 %Might warrant perturbation tests.
374 %Patterns of ADJvice, on the other hand, are more spatially coherent,
375 %but still hard to interpret (or even counter-intuitive
376 %in many places).
377
378 %(*)
379 %"Growth in extent of sensitivities" goes in clear pulses:
380 %almost no change between months: 0-5, 10-20, 24-32, 36-44
381 %These essentially correspond to months of
382
383
384 %\subsection{Sensitivities to the oceanic state}
385
386 %\paragraph{Sensitivities to theta}
387
388 %\textit{Sensitivities at the surface (z = 5 m)}
389
390 %(*)
391 %mabye redo with caxmax=0.02 or even 0.05
392
393 %(*)
394 %Core of negative sensitivities spreading through the CAA as
395 %one might expect [TEST]:
396 %Increase in SST will decrease ice thickness and therefore ice export.
397
398 %(*)
399 %What's maybe unexpected is patterns of positive sensitivities
400 %at the fringes of the "core", e.g. in the Southern channels
401 %(Bellot St., Peel Sound, M'Clintock Channel), and to the North
402 %(initially MacLean St., Prince Gustav Adolf Sea, Hazen St.,
403 %then shifting Northward into the Arctic interior).
404
405 %(*)
406 %Marked sensitivity from the Arctic interior roughly along 60$^{\circ}$W
407 %propagating into Lincoln Sea, then
408 %entering Nares Strait and Smith Sound, periodically
409 %warming or cooling[???] the Lancaster Sound exit.
410
411 %\textit{Sensitivities at depth (z = 200 m)}
412
413 %(*)
414 %Negative sensitivities almost everywhere, as might be expected.
415
416 %(*)
417 %Sensitivity patterns between free-slip and no-slip BCs
418 %are quite similar, except in Lincoln Sea (North of Nares St),
419 %where the sign is reversed (but pattern remains similar).
420
421 %\paragraph{Sensitivities to salt}
422
423 %T.B.D.
424
425 %\paragraph{Sensitivities to velocity}
426
427 %T.B.D.
428
429 %\subsection{Sensitivities to the atmospheric state}
430
431 %\begin{itemize}
432 %%
433 %\item
434 %plot of ATEMP for 12, 24, 36, 48 months
435 %%
436 %\item
437 %plot of HEFF for 12, 24, 36, 48 months
438 %%
439 %\end{itemize}
440
441
442
443 %\reffig{4yradjheff}(a--d) depict sensitivities of sea-ice export
444 %through Fram Strait in December 1995 to changes in sea-ice thickness
445 %12, 24, 36, 48 months back in time. Corresponding sensitivities to
446 %ocean surface temperature are depicted in
447 %\reffig{4yradjthetalev1}(a--d). The main characteristics is
448 %consistency with expected advection of sea-ice over the relevant time
449 %scales considered. The general positive pattern means that an
450 %increase in sea-ice thickness at location $(x,y)$ and time $t$ will
451 %increase sea-ice export through Fram Strait at time $T_e$. Largest
452 %distances from Fram Strait indicate fastest sea-ice advection over the
453 %time span considered. The ice thickness sensitivities are in close
454 %correspondence to ocean surface sentivitites, but of opposite sign.
455 %An increase in temperature will incur ice melting, decrease in ice
456 %thickness, and therefore decrease in sea-ice export at time $T_e$.
457
458 %The picture is fundamentally different and much more complex
459 %for sensitivities to ocean temperatures away from the surface.
460 %\reffig{4yradjthetalev10??}(a--d) depicts ice export sensitivities to
461 %temperatures at roughly 400 m depth.
462 %Primary features are the effect of the heat transport of the North
463 %Atlantic current which feeds into the West Spitsbergen current,
464 %the circulation around Svalbard, and ...
465
466
467 %%\begin{figure}[t!]
468 %%\centerline{
469 %%\subfigure[{\footnotesize -12 months}]
470 %%{\includegraphics*[width=0.44\linewidth]{\fpath/run_4yr_ADJheff_arc_lev1_tim072_cmax2.0E+02.eps}}
471 %%\includegraphics*[width=.3\textwidth]{H_c.bin_res_100_lev1.pdf}
472 %%
473 %%\subfigure[{\footnotesize -24 months}]
474 %%{\includegraphics*[width=0.44\linewidth]{\fpath/run_4yr_ADJheff_arc_lev1_tim145_cmax2.0E+02.eps}}
475 %%}
476 %%
477 %%\caption{Sensitivity of sea-ice export through Fram Strait in December 2005 to
478 %%sea-ice thickness at various prior times.
479 %%\label{fig:4yradjheff}}
480 %%\end{figure}
481
482
483 %\ml{[based on the movie series
484 % zzz\_run\_export\_canarch\_freeslip\_4yr\_1989\_ADJ*:]} The ice
485 %export through the Canadian Archipelag is highly sensitive to the
486 %previous state of the ocean-ice system in the Archipelago and the
487 %Western Arctic. According to the \ml{(adjoint)} senstivities of the
488 %eastward ice transport through Lancaster Sound (\reffig{arctic_topog},
489 %cross-section G) with respect to ice volume (effective thickness), ocean
490 %surface temperature, and vertical diffusivity near the surface
491 %(\reffig{fouryearadj}) after 4 years of integration the following
492 %mechanisms can be identified: near the ``observation'' (cross-section
493 %G), smaller vertical diffusivities lead to lower surface temperatures
494 %and hence to more ice that is available for export. Further away from
495 %cross-section G, the sensitivity to vertical diffusivity has the
496 %opposite sign, but temperature and ice volume sensitivities have the
497 %same sign as close to the observation.
498
499
500 %%% Local Variables:
501 %%% mode: latex
502 %%% TeX-master: "ceaice"
503 %%% End:

  ViewVC Help
Powered by ViewVC 1.1.22