Simple FORTRAN

For those of you that suffered through my botched presentation yesterday, here's a small set of files to get you started. I cleaned things up this morning and put together a small package of three FORTRAN files and their associated Makefile. The FORTRAN files should give you a simple skeleton that illustrates a main program that calls a subroutine and then a function. The subroutine and function are each in separate files along with unit test drivers. Throw out the stuff that I gave you yesterday ( use the UNIX 'rm' command ) and then get the new tar archive fort_simple.tar and place it in the directory you worked in yesterday.

Once you have the tar archive, here is the UNIX command to open it:

You can build and then run this simple program with the included makefile by typing( TRY THIS!! ):

This version of the Makefile is much simpler that the one I tried to work through during the talk. In particular, this version contains the phrase CUSTOMIZE HERE at the four points where you need to change the Makefile to use with your own program.

Examples of Programming Style

Now you should view each of the FORTRAN files with Xemacs. If you view the files with Netscape (by clicking below), you won't see the language formatting that Xemacs will provide.

These files illustrate the main ideas that I listed under programming style during the talk.