Professional Documents
Culture Documents
Fortran Programming Style
Fortran Programming Style
Some material in this and subsequent sections is adapted from the book "FORTRAN 90 for Scientists and
Engineering" by Brian Hahn, which was included on-line with the Fortran PowerStation 4.0 compiler.
A program which is written any old how, although it may do what is required, is going to be
difficult to understand when you go through it again after a month or two. Serious programmers
therefore pay a fair amount of attention to what is called programming style, in order to make
their programs clearer and more readable both to themselves, and to other potential users. You
may find this irritating, if you are starting to program for the first time, because you will
naturally be impatient to get on with the job. But a little extra attention to your program layout
will pay enormous dividends in the long run, especially when it comes to debugging. Some hints
on how to improve your programming style are given below.