# path
if ("" == "`echo $path | grep /usr/local/mpi/intel/mvapich2-2.1/bin`") then
    set path=(/usr/local/mpi/intel/mvapich2-2.1/bin $path)
endif

# LD_LIBRARY_PATH
if ("1" == "$?LD_LIBRARY_PATH") then
    if ("$LD_LIBRARY_PATH" !~ */usr/local/mpi/intel/mvapich2-2.1/lib64*) then
        setenv LD_LIBRARY_PATH /usr/local/mpi/intel/mvapich2-2.1/lib64:${LD_LIBRARY_PATH}
    endif
else
    setenv LD_LIBRARY_PATH /usr/local/mpi/intel/mvapich2-2.1/lib64
endif

# MANPATH
if ("1" == "$?MANPATH") then
    if ("$MANPATH" !~ */usr/local/mpi/intel/mvapich2-2.1/share/man*) then
        setenv MANPATH /usr/local/mpi/intel/mvapich2-2.1/share/man:${MANPATH}
    endif
else
    setenv MANPATH /usr/local/mpi/intel/mvapich2-2.1/share/man:
endif

# MPI_ROOT
setenv MPI_ROOT /usr/local/mpi/intel/mvapich2-2.1
