Fortran

Using Intel Compilers

To compile the FORTRAN 77 source file "test.f" with the Intel FORTRAN 77 compiler, use the command

ifort -o test test.f

To compile the FORTRAN 90 source file "test.f90" with the Intel FORTRAN 90 compiler, use the command

ifort -o test test.f90

Note that the Intel FORTRAN 77 compiler is used for source files ending in ".f" and the Intel FORTRAN 90 compiler is used for source files ending in ".f90".

Using GNU Compilers

To compile the FORTRAN 77 source file "test.f" with the GNU FORTRAN 77 compiler, use the command

g77 -o test test.f

To compile Fortran 90/95 source file "test.f90" with GNU Fortran compiler, use the command

gfortran -o test test.f90

Refer to HPC Guide to C/C++ for compiling software as scheduler job versus interactively.

References: