#%Module1.0
#
# mvapich2-gnu modulefile
#

proc ModulesHelp { } {
        puts stderr "\tThis module will prepend the mvapich2-gnu bin, man and lib directories"
        puts stderr "\tto the PATH, MANPATH and LD_LIBRARY_PATH environment variables,"
        puts stderr "\trespectively.\n"
}

module-whatis   "add mvapich2-gnu bin, man and lib directory to PATH, MANPATH and LD_LIBRARY_PATH"

setenv MPIHOME /opt/mvapich2/gnu
prepend-path PATH $env(MPIHOME)/bin
prepend-path MANPATH $env(MPIHOME)/man
prepend-path LD_LIBRARY_PATH $env(MPIHOME)/lib

conflict mpi

if [ module-info mode load ] {
        ModulesHelp
}