############################################################################### ## This script is for sending a FLUKA job ## ## This script receives 1 parameter which is the your identification number ## of the job. After FLUKA simulation finishes a new folder will be created ## inside ./output$mydir directory with your id number, FLUKA results will be ## stored here. ## ## Modify `export FLUPRO` and `export WORK` lines with your FLUKA and WORK ## directory paths. #Name of the directory where your fluka input file is located mydir=FILES #Define environment variable export FLUPRO=/afs/cern.ch/user/d/daguerre/public/fluka export WORK=/afs/cern.ch/user/d/daguerre/public/work/simulation/$mydir #Create a copy of the input file and change the seed number cp $WORK/toy.inp ./ ./RANDOMIZ.sh $RANDOM #Run the fluka simulation and create a new directory to copy your simulation results $FLUPRO/flutil/rfluka -M 1 $WORK/toy mkdir $WORK/../output$mydir mkdir $WORK/../output$mydir/$1 cp * $WORK/../output$mydir/$1