Compiling on the Intel machines
Command: ifort Recommended options: Useful debugging options:
bullet -C -d0
bullet See documentation ... bullet mkl_lapack bullet mkl_p4, pthread
 
bullet libraries for Pentium 4 architecture
bullet Convenient use:


ifc -O2 -xW -tpp7 -132 $1 $2 $3 -lmkl_lapack -lmkl_p4 -lpthread -larpack

Remember to chmod +x this file and add bin to your path, then the compile command is simply

if90 -o file.x file.f
 

bullet I have found it convenient to make a small script called if90 in a bin subdirectory of my home directory with the following line:
bullet Troubleshooting:
  source /etc/tcshrc
endif

If you use bashrc, put the following lines in your .bashrc file instead:

if [ -f /etc/profile ]; then
        . /etc/profile
fi
bullet If you have errors that say a library cannot be found, then make sure you have the following lines in your .tcshrc or .cshrc file in your home directory (if you use tcsh):

if ( -r /etc/tcshrc ) then