Migration to Fortran 90
Writing Better Fortran 90 Programs
FAQ Lists
Ask the CISL Consultants
|
Fortran 90 Welcome
.
Guide to Fortran 90
maintained by
NCAR/CISL
Consulting Services Group
Introduction
The Fortran 90 programming language is an international standard as
well as a national standard. It is a superset of the ANSI Fortran 77
programming language standard. The purpose of this guide is to assist
you in migrating to Fortran 90 compilers and to help you begin using
the new features of Fortran 90.
A Few Things to Remember
Our Recommended Model for Switching to Fortran 90
- Make backup versions of your source code as you go through the
conversion process.
- Validate the syntax and consistency of
your Fortran 77 source code before you start. While this may sound
unnecessary, the CISL Consulting Services Group has found that many
problems in the conversion process can be avoided entirely by starting
with clean source code. Tools available to help you in the process
include:
- Compile the code with the Fortran90 compiler. If any compiler
warnings or errors are produced, fix them before continuing.
- If you are satisfied with the results, you are, for all intents
and purposes, finished with the conversion process at this point. The
remaining steps are optional.
- At this point you may wish to consider putting the compilation
and linking of your code under the control of the UNIX
"make" utility. This allows incremental builds of your program by
recompiling only those modules which have changed since the last
build.
- Use a Fortran77-to-Fortran90 converter on your code to help
remove obsolescent language features and transition to the new source
form. This step is optional because all Fortran 90 compilers will
accept obsolescent language and the old "fixed" source format.
- The above (optional) conversion from Fortran 77 to Fortran 90 may
or may not make extensive use of new language features. If you wish
to use the new features of the Fortran 90 language, this is the time
to begin implementing them.
|