Parametric fortran: program generation in scientific computing

  • Authors:
  • Martin Erwig;Zhe Fu;Ben Pflaum

  • Affiliations:
  • School of Electrical Engineering and Computer Science, Oregon State University, Corvallis, OR;Microsoft Corporation, Redmond, WA;School of Electrical Engineering and Computer Science, Oregon State University, Corvallis, OR

  • Venue:
  • Journal of Software Maintenance and Evolution: Research and Practice
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Parametric Fortran is an extension of Fortran that supports the definition of Fortran program templates by allowing the parameterization of arbitrary Fortran constructs. A Fortran program template can be translated into a regular Fortran program guided by values for the parameters. This paper describes the design, implementation, and applications of Parametric Fortran. Parametric Fortran is particularly useful in scientific computing. The applications include the definition of generic functions, removing duplicated code, and automatic differentiation. The described techniques have been successfully employed in a project that implements a generic inverse ocean modeling system.