Source-to-source adjoint Algorithmic Differentiation of an ice sheet model written in C

被引:4
作者
Hascoet, L. [1 ]
Morlighem, M. [2 ]
机构
[1] Univ Cote Azur, INRIA, Sophia Antipolis, France
[2] Univ Calif Irvine, Dept Earth Syst Sci, Irvine, CA 92697 USA
关键词
Ice sheet model; ISSM; Algorithmic Differentiation; adjoint methods; dynamic memory; Tapenade; BASAL; SURFACE;
D O I
10.1080/10556788.2017.1396600
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Algorithmic Differentiation (AD) has become a powerful tool to improve our understanding of the Earth System, because it can generate adjoint code which permits efficient calculation of gradients that are essential to sensitivity studies, inverse problems, parameter estimation and data assimilation. Most source-to-source transformation tools, however, have been designed for FORTRAN and support for C remains limited. Here we use the Adjoinable Land Ice Flow model (ALIF), a C clone of the C++ Ice Sheet System Model (ISSM) and employ source-to-source AD to produce its adjoint code. We present the first running source-to-source adjoint of ALIF, and its application to basal drag inversion under Pine Island Glacier, West Antarctica. ALIF brought several challenges to AD tool development, such as the correct treatment of the context code, which does not compute the differentiable function, but controls this computation through the setup of data structures, including possible aliasing, as well as data-flow reversal in the presence of pointers and dynamic memory, which are ubiquitous in codes such as ISSM and ALIF. We present the strategies we have developed to overcome these challenges.
引用
收藏
页码:829 / 843
页数:15
相关论文
共 18 条
[1]  
[Anonymous], 2008, ADV AUTOMATIC DIFFER, DOI DOI 10.1007/978-3-540-68942-3_18
[2]  
[Anonymous], 2008, OTHER TITLES APPL MA
[3]  
Fagan M, 2006, SIXTH IEEE INTERNATIONAL WORKSHOP ON SOURCE CODE ANALYSIS AND MANIPULATION, PROCEEDINGS, P85
[4]  
Giering R, 2002, AUTOMATIC DIFFERENTIATION OF ALGORITHMS: FROM SIMULATION TO OPTIMIZATION, P283
[5]  
Giles M. B., 2008, Lecture Notes in Computational Science and Engineering, P35
[6]   Committed retreat of Smith, Pope, and Kohler Glaciers over the next 30 years inferred by transient model calibration [J].
Goldberg, D. N. ;
Heimbach, P. ;
Joughin, I. ;
Smith, B. .
CRYOSPHERE, 2015, 9 (06) :2429-2446
[7]   Parameter and state estimation with a time-dependent adjoint marine ice sheet model [J].
Goldberg, D. N. ;
Heimbach, P. .
CRYOSPHERE, 2013, 7 (06) :1659-1678
[8]   Programming language features, usage patterns, and the efficiency of generated adjoint code [J].
Hascoet, Laurent ;
Utke, Jean .
OPTIMIZATION METHODS & SOFTWARE, 2016, 31 (05) :885-903
[9]   The Tapenade Automatic Differentiation Tool: Principles, Model, and Specification [J].
Hascoet, Laurent ;
Pascual, Valerie .
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 2013, 39 (03)
[10]   Greenland ice-sheet volume sensitivity to basal, surface and initial conditions derived from an adjoint model [J].
Heimbach, Patrick ;
Bugnion, Veronique .
ANNALS OF GLACIOLOGY, 2009, 50 (52) :67-80