#%Module 1.0

# Environment module wrapper for MPI compilers in RHEL

# Directory which holds the MPI compiler binaries
prepend-path            PATH            	/usr/lib64/openmpi/1.2.8-gcc/bin
# Directory which holds the binaries compiled against the MPI library
prepend-path		PATH			/usr/lib64/openmpi/bin
# Directory which holds the MPI compiler libraries
prepend-path            LD_LIBRARY_PATH		/usr/lib64/openmpi/1.2.8-gcc/lib
# Directory which holds the libraries compiled against the MPI library
prepend-path		LD_LIBRARY_PATH		/usr/lib64/openmpi/lib/
# Directory which holds the manual pages for the MPI compiler
prepend-path		MANPATH			/usr/lib64/1.2.8-gcc/man
# Directory which holds the manual pages for the MPI software
prepend-path		MANPATH			/usr/share/man/openmpi-x86_64
# Directory which holds the Python modules compiled against the MPI library
prepend-path		PYTHONPATH		/usr/lib64/python2.3/site-packages/openmpi/

# Helper variables.
setenv                  MPI_BIN			/usr/lib64/openmpi/bin
setenv                  MPI_LIB			/usr/lib64/openmpi/lib/
setenv			MPI_SYSCONFIG		/etc/openmpi-x86_64/
setenv			MPI_FORTRAN_MOD_DIR	/usr/lib64/gfortran/modules/openmpi/
setenv			MPI_INCLUDE		/usr/include/openmpi-x86_64/
setenv			MPI_MAN			/usr/share/man/openmpi-x86_64
setenv			MPI_PYTHON_SITEARCH	/usr/lib64/python2.3/site-packages/openmpi/
setenv			MPI_COMPILER		openmpi-x86_64
setenv			MPI_SUFFIX		_openmpi
