mpicc complains about icc not being found

When you try to compile with mpicc and you get an error like,

mpicc: line 228: icc: command not found

This means that you forgot to source the Intel settings file. Run the following command before you source the mpich settings file.

 source /usr/local/profile.d/iccvars.sh