setup_for_dune.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 # source /grid/fermiapp/minerva/software_releases/v10r7p3/setup.sh
4 export MODE=$1
5 echo "setting up for MODE $MODE"
6 setup(){
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
10  setup ifdhc
11  local TOP=${PWD}
12  #source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
13 
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
20  export M32=-m64
21  setup fftw v3_3_4 -q prof
22  #setup python v2_7_6
23  # setup for jobsub client
24  # according to the prescription in Mike Kirby's talk
25  # minerva doc-10551, Dec 2014
26 
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."
30  # setup jobsub_tools
31  setup jobsub_client
32  fi
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"
40 }
41 # HOST=$(hostname -f)
42  if [ "$MODE" = "REF" ] || [ "$MODE" = "OPT" ];then
43 # if echo "$HOST" |grep 'dune';then
44  echo "Setting up for dune"
45 setup
46 else
47 echo "ARGS REF for reference and OPT for optimized"
48 fi