diff --git a/DAMASK_env.sh b/DAMASK_env.sh index 1e88c89ce..78bd92036 100644 --- a/DAMASK_env.sh +++ b/DAMASK_env.sh @@ -1,6 +1,7 @@ # sets up an environment for DAMASK on bash # usage: source DAMASK_env.sh -LOCATION=$(readlink -f "`dirname $BASH_SOURCE`") +STAT=$(stat "`dirname $BASH_SOURCE`") +LOCATION=${STAT##* } export DAMASK_ROOT=${LOCATION} export DAMASK_NUM_THREADS=2 # disable output in case of scp