Counter

Search

Coding Guidelines and Inline Documentation: GISS ModelE

August 9th, 2007 by Dan Hughes

Here’s an example of what a lack on coding guidelines (or ignoring them) can lead to. From the NASA/GISS ModelE online source code browser:

SUBROUTINE SURFCE 1,30
!@sum SURFCE calculates the surface fluxes which include
!@+ sensible heat, evaporation, thermal radiation, and momentum
!@+ drag. It also calculates instantaneous surface temperature,
!@+ surface specific humidity, and surface wind components.
!@auth Nobody will claim responsibilty

This is the entire header information for a 1228-line routine.

The last line says it all.

Posted in Code Documentation, Code Verification, Coding standards, GISS ModelE Coding |

One Response

  1. sondbax Says:

    Pardon me if this Should Be Obvious: is there a known technique for getting ModelE to compile under any open source Fortran compiler?

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.