Physics 329: Fortran Programming
Please report all errors/typos. etc to
matt@infeld.ph.utexas.edu
- Most of the source code covered in class can be found on
the phy329 account on einstein in
~phy329/f77/ex1, ~phy329/f77/ex2, ... (organized by lecture).
- IMPORTANT: Refer to on-line (postscript) version of SGI
Fortran 77 Language Reference Manual
for full details of Fortran syntax.
- Lecture 1 (Sep 16)
- Lecture 2 (Sep 18)
-
fdemo1.f: Program demonstrating some essential
Fortran 77 language elements.
-
fdemo1_output: Output from fdemo1
- Lecture 3 (Sep 20)
- Lecture 4 (Sep 23)
- Lecture 5 (Sep 25)
- Sample output
from nth, a filter (shell-script) which
selects specified columns (separated by white space)
from standard output and writes them to standard
output.
-
arraydemo.f Demonstrates a general technique
for writing Fortran programs which define and manipulate
multi-dimensional arrays whose bounds are determined at
run time.
Program output
- Lecture 6 (Sep 27)
- Lecture 7 (Sep 30)
- dmroutines.f:
Two dimensional array (matrix) routines:
- dmmmult: Matrix-matrix multiply (square matrices only)
- dmfrom: Read matrix from file or stdin
- dmto: Write matrix to file or stdout
- tdm.f: Test
driver for dmroutines.f.
Program output on SGIs.
Program output on Cray J90.
Note
that this last document also contains general instructions re
how to 'port' a Fortran code to the Cray.