FORTRAN continues to be a useful tool for some SSCC members. SSCC staff cannot assist in writing FORTRAN programs, but we do make the tools available for those who wish to use them.

Versions of FORTRAN

HAL has the gnu g77 FORTRAN compiler installed. KITE has Absoft's FORTRAN compiler installed, including f77, f90, and f95, as well as the gnu g77 compiler. Note that FORTRAN code compiled on HAL or KITE will run on any of the Condor servers.


All of the FORTRAN compilers have man entries. Absoft also has additional documentation available at /opt/absoft/doc. Note that this directory (like the Absoft compiler) is only available on KITE.

More Resources

Absoft FORTRAN has optimized versions of the Basic Linear Algebra Subroutines (BLAS) available. Use the -ldxml compiler option to reference BLAS routines.

There are two other support libraries for porting code from VAX FORTRAN and other Unix environments. (See the documentation referred to above.) Because of the different ways in which they were compiled, a special combination of compiler codes works best to reference these resources. To compile code that draws from the Unix (or the VAX) Support Library, use compiler options to fold names (as seen by the linker) to lower case and to append underscores, as well as options referencing the needed libraries. In f77 the needed options to call the Unix support library routine are:

f77 -f -N15 -lU77 myprog.f

Fold-to-lower-case and append-underscore options are also available for f90 and f95; see man.

It is also possible to have FORTRAN programs call routines written in C. Instructions for doing so are found in the Absoft Fortran User Guide. However the compiler flag needed if these routines use the C math library (including basic functions such as square roots and logs) is not documented: it is -lm. If driver.f is a fortran program that calls a routine from the C program driven.c, the compile command is

f77 -lm driver.f driven.c

If your programs will run for more than a few minutes consider running your jobs using Condor. That way you will get exclusive use of a CPU, and other users will not be affected by your job. Take a look at An Introduction to Condor for more information.

Last Revised: 11/18/2009