Automatic code generation for a convection scheme

  • Authors:
  • Paul van der Mark;Lex Wolters;Gerard Cats

  • Affiliations:
  • Leiden Institute of Advanced, 2333 CA Leiden, The Netherlands;Leiden Institute of Advanced, 2333 CA Leiden, The Netherlands;Royal Netherlands Meteorological Institute, 3730 AE De Bilt, The Netherlands

  • Venue:
  • Proceedings of the 2003 ACM symposium on Applied computing
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

Traditional design and implementation of large atmospheric models is a difficult, tedious and error prone task. With the CTADEL project we investigate a new method of code generation, where the designer describes the model in an abstract high-level specification language which is translated into highly optimized Fortran code. This is applied to a convection scheme as used in a numerical weather prediction model (NWP). We address problems like how to generate efficient code for conditional expressions by using polymorphic templates. Finally, we compare the generated code for the convection scheme with the hand-written reference code.