Fortran Tutorial Comments
This Fortran77 tutorial has been adapted from a tutorial
created for use at Stanford University for class SCCM-001-F.
The SCCM-001-F Tutorial is available on the Web at
www-leland.stanford.edu/class/sccm001/tutorial/.
The modifications to the tutorial are as follows:
- Lessons 4 (Compiling and Linking) and 19 (Debugging) have been completely rewritten for use with
the MSDOS BC-Fortran77 compiler.
- Exercises have been moved from homework assignments to the
tutorial lesson to which they apply.
- The order of the lessons has been changed.
- Some modifications have been made to the Fortran77 code.
examples to make them compatiable with the MSDOS BC-Fortran77 compiler.
- Minor corrections have been made to the HTML code.
- Tutorial navigation has been added and all navigational
references in the tutorial have been changed to local references.
- Hypertext links to Web sites in the tutorial have been
checked and corrected as necessary for link rot.
- All filenames in the tutorial changed to 8.3 filenames
for local use with Windows 3.x and MSDOS systems.
Notes on the BC-Fortran compiler
This tutorial has been designed for use with the BC-Fortran77
compiler, version 1.3, and MS-DOS. The compiler is available for
download from Jumbo.com as bcf7713b.zip. Use of the compiler
is free for non-commercial uses. The BC-Fortran77 compiler is
copyrighted by Andre Koestli of Stuttgart, Germany and all error
messages are in German. An English translation of the documentation is
included in the PKZIP file (bcf7713b.zip).
I have tested the BC-Fortran compiler (ver. 1.3) with the code
in the tutorial on a number of different MSDOS systems.
It will run in an MSDOS window in Windows95 or Windows 3.x.
Here are some usage hints based on my experience with this package:
- always specify LIB when linking, you'll need it and the linker may crash
and burn without it.
- I compiled a file with mixed upper and lower case variable names and that
too crashed the linker. Compiling with -u worked just fine.
- I encountered some problems when using formated input
For example:
READ(U,100) X(I), Y(I), Z(I)
100 FORMAT (3(F10.4))
gave an I/O error of 33 for test data in file POINTS.DAT (as did
a number of other variations on the Fw.d format).
READ(U,*) X(I), Y(I), Z(I)
worked fine, however.
Formated output worked correctly for all examples that I tested.
Steve Terry, November, 1997
[Preface]
[Fortran Tutorial Home]