run_fluka.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/bash
  2. #------------------------------------------------
  3. # The Virtual Monte Carlo examples
  4. # Copyright (C) 2007, Ivana Hrivnacova
  5. # All rights reserved.
  6. #
  7. # For the licensing terms see geant4_vmc/LICENSE.
  8. # Contact: vmc@pcroot.cern.ch
  9. #-------------------------------------------------
  10. #
  11. # Macro for preparing working directory for Fluka
  12. # Adapted macro AliRoot/TFluka/scripts/runflukageo.sh
  13. # by Andreas Morsch
  14. # Adapted to FairRoot by M. Al-Turany
  15. echo "Preparing Fluka working directory ..."
  16. CURDIR=`pwd`
  17. WORKDIR=$CURDIR"/fluka_out"
  18. # Remove the previous temporary directory
  19. rm -rf $WORKDIR
  20. # Make a new temporary directory and move to it
  21. mkdir $WORKDIR
  22. cd $WORKDIR
  23. # Link here some special Fluka files needed
  24. ln -s $FLUPRO/neuxsc_72.bin neuxsc.bin
  25. ln -s $FLUPRO/random.dat random.dat
  26. # Copy the random seed
  27. cp $FLUPRO/random.dat old.seed
  28. # Give some meaningfull name to the output
  29. ln -s fluka.out fort.11
  30. #Link FlukaConfig.C as Config.C
  31. #ln -fs ../run.C run.C
  32. ln -fs $VMCWORKDIR/gconfig/flConfig.C flConfig.C
  33. cp $FLUVMC/input/coreFlukaVmc.inp coreFlukaVmc.inp
  34. echo "Preparing Fluka working directory ... finished"