Dynamically create DAMASK_ROOT and DAMASK_BIN

by sourcing this script.

also documents the changes to .bashrc if one wants to 
'install' DAMASK permanently
This commit is contained in:
Claudio Zambaldi 2012-10-24 15:19:41 +00:00
parent 93cc466749
commit d6f69568ad
1 changed files with 11 additions and 0 deletions

11
damask_env.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# it would be nice to set the variables
script_location = `dirname $0`
echo I am here: $script_location
export DAMASK_ROOT=/nethome/$USER/DAMASK
export DAMASK_BIN=/nethome/$USER/DAMASK/bin
export PATH=${PATH}:${DAMASK_BIN}
export PYTHONPATH=${PYTHONPATH}:${DAMASK_ROOT}/lib
export LD_LIBRARY_PATH=${DAMASK_ROOT}/lib/fftw/lib:lib/acml4.4.0/ifort64_mp/lib:lib/acml4.4.0/ifort64/lib:${LD_LIBRARY_PATH}