This is the first compile-able version of Jinwoo's rmc code that I have gotten to work.

In order to compile you must have certain paths and library paths set. I did this using:
export PATH=/export/apps/openmpi_intel_20130618/bin/:/usr/lib64/qt-3.3/bin:/state/partition1/apps/intel_20130618/composer_xe_2013.3.163/bin/intel64:/state/partition1/apps/intel_20130618/composer_xe_2013.3.163/mpirt/bin/intel64:/state/partition1/apps/intel_20130618/composer_xe_2013.3.163/bin/intel64:/state/partition1/apps/intel_20130618/composer_xe_2013.3.163/bin/intel64_mic:/state/partition1/apps/intel_20130618/composer_xe_2013.3.163/debugger/gui/intel64:/export/apps/intel_20130618/advisor_xe_2013/bin64:/export/apps/intel_20130618/inspector_xe_2013/bin64:/export/apps/intel_20130618/vtune_amplifier_xe_2013/bin64:/usr/local/bin:/bin:/usr/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/eclipse:/opt/ganglia/bin:/opt/ganglia/sbin:/usr/java/latest/bin:/opt/maven/bin:/export/apps/openmpi_intel_20130618/:/opt/pdsh/bin:/opt/rocks/bin:/opt/rocks/sbin:/opt/condor/bin:/opt/condor/sbin:/usr/local/samba/sbin:/opt/gridengine/bin/linux-x64:/export/apps/openmpi_intel_20130618/bin/:/usr/local/samba/sbin

export LD_LIBRARY_PATH=/opt/gridengine/lib/linux-x64:/export/apps/openmpi_intel_20130618/lib:/state/partition1/apps/intel_20130618/composer_xe_2013.3.163/compiler/lib:/state/partition1/apps/intel_20130618/composer_xe_2013.3.163/compiler/lib/intel64/

Specifically,
/export/apps/openmpi_intel_20130618/bin
should be at the front of PATH so that all mpi commands look here first. The intel compilers has its own version of MPI which screws things up if it tries to look there first.

The library paths must contain some things.

Also, the makefile is extremely important. I have left LIBS= blank so that it will depend on mpif90 to provide the linking information.
I changed FC_DEBUG to use mpif90 instead of ifort as well.

For more information on this, check my gmail and search for "Intel compiled undefined reference errors (i.e. mpi_reduce_)" - the 3rd message from Tom is the one you want.