2013-12-19 04:08:44 +05:30
|
|
|
# sets up an environment for DAMASK on bash
|
2013-12-20 18:00:17 +05:30
|
|
|
# usage: source DAMASK_env.sh
|
2014-01-12 00:43:02 +05:30
|
|
|
|
2014-01-13 21:34:38 +05:30
|
|
|
if [ "$OSTYPE" == "linux-gnu" ] || [ "$OSTYPE" == 'linux' ]
|
2014-01-24 18:00:27 +05:30
|
|
|
then DAMASK_ROOT=$(readlink -f "`dirname $BASH_SOURCE`")
|
2014-01-11 18:16:30 +05:30
|
|
|
else
|
|
|
|
STAT=$(stat "`dirname $BASH_SOURCE`")
|
2014-01-24 18:00:27 +05:30
|
|
|
DAMASK_ROOT=${STAT##* }
|
2014-01-27 15:42:29 +05:30
|
|
|
unset STAT
|
2014-01-11 18:16:30 +05:30
|
|
|
fi
|
2014-01-24 18:00:27 +05:30
|
|
|
|
2014-01-24 18:47:54 +05:30
|
|
|
if [ -f $HOME/.damask/damask.conf ]; then
|
|
|
|
source $HOME/.damask/damask.conf
|
|
|
|
else
|
|
|
|
source /etc/damask.conf
|
|
|
|
fi
|
|
|
|
|
2013-12-21 17:27:02 +05:30
|
|
|
# disable output in case of scp
|
|
|
|
if [ ! -z "$PS1" ]; then
|
|
|
|
echo
|
|
|
|
echo Düsseldorf Advanced Materials Simulation Kit - DAMASK
|
|
|
|
echo Max-Planck-Institut für Eisenforschung, Düsseldorf
|
|
|
|
echo http://damask.mpie.de
|
|
|
|
echo
|
2014-01-27 15:42:29 +05:30
|
|
|
echo Using environment with ...
|
2014-01-24 18:00:27 +05:30
|
|
|
echo "DAMASK installation in $DAMASK_ROOT"
|
2013-12-21 17:27:02 +05:30
|
|
|
echo "DAMASK_NUM_THREADS=$DAMASK_NUM_THREADS"
|
2014-01-27 19:40:49 +05:30
|
|
|
echo "Compiler: F90=$F90"
|
2014-01-27 15:42:29 +05:30
|
|
|
if [ "x$LAPACK_ROOT" != "x" ]; then
|
2014-01-27 19:40:49 +05:30
|
|
|
echo "LAPACK libaries located in $LAPACK_ROOT"
|
2014-01-27 15:42:29 +05:30
|
|
|
fi
|
|
|
|
if [ "x$ACML_ROOT" != "x" ]; then
|
2014-01-27 19:40:49 +05:30
|
|
|
echo "ACML libaries located in $ACML_ROOT"
|
2014-01-27 15:42:29 +05:30
|
|
|
fi
|
|
|
|
if [ "x$IMKL_ROOT" != "x" ]; then
|
2014-01-27 19:40:49 +05:30
|
|
|
echo "IMKL libaries located in $IMKL_ROOT"
|
2014-01-27 15:42:29 +05:30
|
|
|
fi
|
2014-01-27 19:40:49 +05:30
|
|
|
echo "MSC.Marc root $MARC_ROOT"
|
|
|
|
echo "FFTW libaries located in $FFTW_ROOT"
|
|
|
|
echo "HDF5 libaries located in $HDF5_ROOT (future use)"
|
2013-12-21 17:27:02 +05:30
|
|
|
fi
|
2013-12-19 04:08:44 +05:30
|
|
|
ulimit -s unlimited
|
|
|
|
ulimit -c 0
|
|
|
|
ulimit -v unlimited
|
|
|
|
ulimit -m unlimited
|
2014-01-11 18:16:30 +05:30
|
|
|
export PYTHONPATH=$PYTHONPATH:$DAMASK_ROOT/lib
|
2014-01-27 19:40:49 +05:30
|
|
|
unset DAMASK_ROOT LAPACK_ROOT ACML_ROOT IMKL_ROOT MARC_ROOT FFTW_ROOT HDF5_ROOT
|
|
|
|
|
2014-01-27 15:42:29 +05:30
|
|
|
|