28595 articles – 22090 references  [version française]

inria-00192415, version 2

Building the Tangent and Adjoint codes of the Ocean General Circulation Model OPA with the Automatic Differentiation tool TAPENADE

Moulay Hicham Tber (Author to contact preferably) 1, Laurent Hascoet () 12, Arthur Vidard () 3, Benjamin Dauvergne () 1

N° RR-6372 (2007)

Abstract: The ocean general circulation model OPA is developed by the LODYC team at Paris VI university. OPA has recently undergone a major rewriting, migrating to FORTRAN95, and its adjoint code needs to be rebuilt. For earlier versions, the adjoint of OPA was written by hand at a high development cost. We use the Automatic Differentiation tool TAPENADE to build mechanicaly the tangent and adjoint codes of OPA. We validate the differentiated codes by comparison with divided differences, and also with an identical twin experiment. We apply state-of-the-art methods to improve the performance of the adjoint code. In particular we implement the Griewank and Walther's binomial checkpointing algorithm which gives us an optimal trade-off between time and memory consumption. We apply a specific strategy to differentiate the iterative linear solver that comes from the implicit time stepping scheme

  • 1:  TROPICS (INRIA Sophia Antipolis)
  • INRIA
  • 2:  Société d'Economie et de Mathématiques Appliquées (SEMA)
  • SEMA Group
  • 3:  MOISE (INRIA Grenoble Rhône-Alpes / LJK Laboratoire Jean Kuntzmann)
  • CNRS : UMR5224 – INRIA – Laboratoire Jean Kuntzmann – Université Joseph Fourier - Grenoble I – Institut Polytechnique de Grenoble - Grenoble Institute of Technology
  • Domain : Computer Science/Computational Engineering, Finance, and Science
    Computer Science/Data Structures and Algorithms
    Computer Science/Mathematical Software
  • Keywords : OPA – general circulation model – TAPENADE – automatic differentiation – reverse mode – adjoint code – checkpointing
  • Internal note : RR-6372
  • Available versions :  v1 (2007-11-28) v2 (2007-11-29)
 
  • inria-00192415, version 2
  • oai:hal.inria.fr:inria-00192415
  • From: 
  • Submitted on: Thursday, 29 November 2007 10:05:44
  • Updated on: Thursday, 16 October 2008 16:31:48