#!/usr/local/bin/bash
# Set Eos Home Directory
export EOS_HOME=$HOME/Eos
-export EOS_MIRROR_SITE=/work15/Eos07/Eos
+export EOS_MIRROR_SITE=$HOME/EosMirror
export EOS_GIT_USER=$USER
-P4=`uname -p | grep "Intel"`
+
+###### HOSTYPE #####
+# For Intel
+P4=`uname -p | grep "Intel"`
+
+# For ManyCPU/PHI
MIC=`uname -p | grep "k1om"`
if [ ! -z "$MIC" ]
then
HOSTTYPE=`uname -m | grep "k1om"`
fi
+
if [ "$HOSTTYPE" = "i486" ]
then
if [ -z "$P4" ]
export HOSTTYPE="i386"
fi
fi
-CELL=`uname -p | grep "Cell"`
+
+CELL=`uname -p | grep "Cell"`
CYGWIN=`uname -s | grep "CYGWIN"`
-LINUX=`uname -s | grep "Linux"`
-MAC=`uname -s | grep "Darwin"`
+LINUX=`uname -s | grep "Linux"`
+MAC=`uname -s | grep "Darwin"`
MACHINE=`uname -m`
+
# Set Eos host type
case $HOSTTYPE in
"alpha")
fi
;;
esac
-# Set Display2 Home
+
+
+### Set Display2 Home
export DISPLAY2_HOME=$EOS_HOME/bin/wish
# Set PATH
if [ -z "$CK_PVM_ROOT_BIN" -a -d $PVM_ROOT_BIN ]; then
export PATH=$PATH:$PVM_ROOT_BIN
fi
+
+##### LD_LIBRARY_PATH ######
+### Intel Complier
if [ -d /opt/intel/compiler70/ia32/lib ]; then
if [ ! -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH=/opt/intel/compiler70/ia32/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/opt/intel/compiler70/ia32/lib
fi
fi
+### Eos
if [ -d $EOS_HOME/util/$EOS_HOSTDIR/lib ]; then
if [ ! -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH=$EOS_HOME/util/$EOS_HOSTDIR/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$EOS_HOME/util/$EOS_HOSTDIR/lib
fi
fi
+### Vtk
if [ -d $EOS_HOME/util/$EOS_HOSTDIR/lib/vtk ]; then
if [ ! -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH=$EOS_HOME/util/$EOS_HOSTDIR/lib/vtk:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$EOS_HOME/util/$EOS_HOSTDIR/lib/vtk
fi
fi
+### Eos util
if [ -d $EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib ]; then
if [ ! -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH=$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib
fi
fi
+### Vtk
if [ -d $EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib/vtk ]; then
if [ ! -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH=$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib/vtk:$LD_LIBRARY_PATH
fi
#echo ".Eos_env(1):$LD_LIBRARY_PATH"
+##### CUDA #####
if [ -z "$CUDA_ROOT" ];
then
CUDA_ROOT=$EOS_HOME/util/$EOS_HOSTDIR/cuda
fi
export CUDA_OPTS
+##### ATI
#echo ".Eos_env(2):$LD_LIBRARY_PATH"
#
# ATI Stream SDK
fi
fi
+#### LIBGFORTRAN
#echo ".Eos_env(3):$LD_LIBRARY_PATH"
#
# libgfortran
# For Tcl/Tk Library (Display2/ctfDisplay etc.)
export TCL_LIBRARY=$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib/tcl8.4
+#### DLL
# For Dynamic Library
export DYLD_FALLBACK_LIBRARY_PATH=$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib:$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib/vtk:$DYLD_FALLBACK_LIBRARY_PATH:/usr/lib
export LD_LIBRARY_PATH=/opt/intel/compiler70/ia32/lib:$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib:$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib/vtk:$LD_LIBRARY_PATH:/usr/lib