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!! ):
These files illustrate the main ideas that I listed under programming style during the talk.
Using the pre-processor is easier than I led you to believe. The version of f77 on Suns will automatically run the pre-processor on any file with a .F extension. If you just want to look at the pre-processed output, the command
will preprocess filename.F and put the result in filename.f. Then you can look at filename.f to see what the pre-processor has actually done ( TRY THIS!! ).
All three modules illustrate uses for the pre-processor. The main program (fort_main.F) uses conditional compilation to selectively include either the subroutine call, the function call or both. At the moment the #defines at the top of 'fort_main.f' enable both the subroutine and the function call. Try removing one of the #defines ( say the #define ILLUSTRATE_FUNCTION_CALL ) and see what happens when you recompile and run the program.
Now you can execute the unit test drivers by typing 'fcn_unit' or 'sub_unit'