3 # source /grid/fermiapp/minerva/software_releases/v10r7p3/setup.sh
5 echo "setting up for MODE $MODE"
7 #. "/grid/fermiapp/products/minerva/etc/setups.sh"
8 #source /cvmfs/fermilab.opensciencegrid.org/products/common/etc/setups
9 source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh
12 #source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
14 #setup -q debug -f Linux+2.6-2.5 root v5_30_00
15 #setup geant4 v4_10_1_p02 -q e7:prof
16 #setup root v5_34_21b -q e6:nu:prof
17 #setup dk2nu v01_01_03c -q e7:prof
18 #setup dk2nu v01_04_01d -q e10:prof:r6
19 setup dk2nu v01_05_01b -q e15:prof
21 setup fftw v3_3_4 -q prof
23 # setup for jobsub client
24 # according to the prescription in Mike Kirby's talk
25 # minerva doc-10551, Dec 2014
27 # Setup grid submit tools if not on a grid node
28 if [ -z "${_CONDOR_SCRATCH_DIR}" ]; then
29 echo "_CONDOR_SCRATCH_DIR is not set... so I'm assuming we're not running on a grid node.... Setting up jobsub tools."
33 export BOOSTROOT=/cvmfs/larsoft.opensciencegrid.org/products/boost/v1_57_0a/source/boost_1_57_0/
34 # bash magic pulled off of stack exchange
35 # gets the full path to the location of setup.sh
36 export PPFX_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
37 echo "setting PPFX_DIR=${PPFX_DIR}"
38 export LD_LIBRARY_PATH=$PPFX_DIR/lib:$LD_LIBRARY_PATH
39 echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
42 if [ "$MODE" = "REF" ] || [ "$MODE" = "OPT" ];then
43 # if echo "$HOST" |grep 'dune';then
44 echo "Setting up for dune"
47 echo "ARGS REF for reference and OPT for optimized"