Modern Fortran: Style and Usage

  • 4h 59m
  • Norman S. Clerman, Walter Spector
  • Cambridge University Press
  • 2012

Fortran is one of the oldest high-level languages and remains the premier language for writing code for science and engineering applications. Modern Fortran: Style and Usage is a book for anyone who uses Fortran, from the novice learner to the advanced expert. It describes best practices for programmers, scientists, engineers, computer scientists, and researchers who want to apply good style and incorporate rigorous usage in their own Fortran code or to establish guidelines for a team project. The presentation concentrates primarily on the characteristics of Fortran 2003, while also describing methods in Fortran 90/95 and valuable new features in Fortran 2008. The authors draw on more than a half century of experience writing production Fortran code to present clear succinct guidelines on formatting, naming, documenting, programming, and packaging conventions and various programming paradigms such as parallel processing (including OpenMP, MPI, and coarrays), OOP, generic programming, and C language interoperability. Programmers working with legacy code will especially appreciate the section on updating old programs.

  • Provides a best practices guide for the everyday user of the language while focusing on the intricate features of the language
  • Includes discussion of the new features of Fortran 2003 and Fortran 2008, the two latest versions of the language standard
  • Sections devoted to parallel processing including OpenMP, MPI and coarrays

About the Authors

Norman S. Clerman is currently a private consultant. He was formerly the Chief Computer Scientist at Opcon Design Associates, LLC, a small company engaged in lens design.

Walter Spector has been employed by Silicon Graphics International's Professional Services organization (formerly Cray Research, Inc.) since 1984.

In this Book

  • Introduction
  • General Principles
  • Formatting Conventions
  • Naming Conventions
  • Documentation Conventions
  • Programming Principles
  • Programming Conventions
  • Input and Output
  • Packaging Conventions
  • Generic Programming
  • Object Orientation
  • Parallel Processing
  • Numerical Types, Kinds, and Operations
  • C Interoperability
  • Updating Old Programs