| <p># Installing AraSim on OSC</p>
<p>Readding this because I realized it was deleted when I went looking for it <img alt="laugh" height="23" src="https://as-phy-radiorm.asc.ohio-state.edu/elog/ckeditor/plugins/smiley/images/teeth_smile.png" title="laugh" width="23" /></p>
<p>Quick Links:<br />
- https://github.com/ara-software/AraSim # AraSim github repo (bottom has installation instructions that are sort of right)<br />
- Once AraSim is downloaded: AraSim/UserGuideTex/AraSimGuide.pdf (manual for AraSim) might have to be downloaded if you can't view pdf's where you write code</p>
<p>Step 1: <br />
We need to add in the dependancies. AraSim needs multiple different packages to be able to run correctly. The easiest way on OSC to get these without a headache is to add the following to you .bashrc for your user.</p>
<p>cvmfs () {<br />
module load gnu/4.8.5<br />
export CC=`which gcc`<br />
export CXX=`which g++`<br />
if [ $# -eq 0 ]; then<br />
local version="trunk"<br />
elif [ $# -eq 1 ]; then<br />
local version=$1<br />
else<br />
echo "cvmfs: takes up to 1 argument, the version to use"<br />
return 1<br />
fi<br />
echo "Loading cvmfs for AraSim"<br />
echo "Using /cvmfs/ara.opensciencegrid.org/${version}/centos7/setup.sh"<br />
source "/cvmfs/ara.opensciencegrid.org/${version}/centos7/setup.sh"<br />
#export JUPYTER_CONFIG_DIR=$HOME/.jupyter<br />
#export JUPYTER_PATH=$HOME/.local/share/jupyter<br />
#export PYTHONPATH=/users/PAS0654/alansalgo1/.local/bin:/users/PAS0654/alansalgo1/.local/bin/pyrex:$PYTHONPATH<br />
}</p>
<p><br />
If you want to view my bashrc<br />
- /users/PAS1977/jacobweiler/.bashrc</p>
<p>Reload .bashrc<br />
- source ~/.bashrc</p>
<p>Step 2:<br />
Go to directory that you want to put AraSim and type: <br />
- git clone https://github.com/ara-software/AraSim.git<br />
This will download the github repo</p>
<p>Step 3:<br />
We need to use make and load sourcing<br />
- cd AraSim<br />
- cvmfs<br />
- make<br />
wait and it should compile the code </p>
<p>Step 4:<br />
We want to do a test run with 100 neutrinos to make sure that it does *actually* run<br />
Try: - ./AraSim SETUP/setup.txt<br />
This errored for me (probably you as well) <br />
Switch from frequency domain to time domain in the setup.txt<br />
- cd SETUP<br />
- open setup.txt <br />
- scroll to bottom<br />
- Change SIMULATION_MODE = 1<br />
- save<br />
- cd .. <br />
- ./AraSim SETUP/setup.txt <br />
This should run quickly and now you have AraSim setup!</p> |