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-08 05:08:58 +05:30
|
|
|
STAT=$(stat "`dirname $BASH_SOURCE`")
|
|
|
|
LOCATION=${STAT##* }
|
2013-12-21 17:27:02 +05:30
|
|
|
export DAMASK_ROOT=${LOCATION}
|
2013-12-19 04:08:44 +05:30
|
|
|
export DAMASK_NUM_THREADS=2
|
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
|
|
|
|
echo Preparing environment ...
|
|
|
|
echo "DAMASK_ROOT=$DAMASK_ROOT"
|
|
|
|
echo "DAMASK_NUM_THREADS=$DAMASK_NUM_THREADS"
|
|
|
|
fi
|
2013-12-19 04:08:44 +05:30
|
|
|
ulimit -s unlimited
|
|
|
|
ulimit -c 0
|
|
|
|
ulimit -v unlimited
|
|
|
|
ulimit -m unlimited
|
2013-12-30 08:32:16 +05:30
|
|
|
export DAMASK_BIN=${DAMASK_ROOT}/bin
|
2013-12-21 17:27:02 +05:30
|
|
|
export PATH=${PATH}:${DAMASK_BIN}
|
|
|
|
export PYTHONPATH=${PYTHONPATH}:${DAMASK_ROOT}/lib
|
|
|
|
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
|