Repository to share code among the members of the SHM Working Group.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
837 B

  1. #!/bin/bash
  2. ###############################################
  3. # A script to run a single event of IP Glasma #
  4. # argument $1: eventnumber
  5. ###############################################
  6. number=$1
  7. origDir=$(pwd)
  8. targetDir=/lustre/alice/users/jcrkovsk/IPGlasmaEvents/Event$number
  9. echo Target dir $targetDir
  10. ## check if directory exists - if not make it
  11. if [ ! -d "$targetDir" ]; then
  12. mkdir $targetDir
  13. fi
  14. ## must copy this file into the working (glasma event) directory
  15. cp /lustre/alice/users/jcrkovsk/ipglasma/qs2Adj_vs_Tp_vs_Y_200.in $targetDir
  16. cd $targetDir
  17. ## load libraries
  18. spack load -r openmpi target=x86_64
  19. spack load -r fftw target=x86_64
  20. ## run ipglasma
  21. /lustre/alice/users/jcrkovsk/ipglasma/ipglasma /lustre/alice/users/jcrkovsk/IPGlasmaEvents/BjoernsInputFile/inputPbPb
  22. rm qs2Adj_vs_Tp_vs_Y_200.in
  23. ## go back
  24. cd $origDir