From e7086c6bbdcf19930606d436050e8b7c39bc9877 Mon Sep 17 00:00:00 2001 From: Jana Crkovska Date: Mon, 27 Sep 2021 12:55:08 +0200 Subject: [PATCH] more files --- README.md | 14 +++++++++++++- resubmitHydro.sh | 30 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 resubmitHydro.sh diff --git a/README.md b/README.md index 73a404f..37ef3d0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ # SHMGroupRepo -Repository to share code among the members of the SHM Working Group. \ No newline at end of file +Repository to share code among the members of the SHM Working Group. + +## IP Glasma +- input file inputPbPb +- makeSingleEvent.sh +- checkAndCreateIPGlasmaEvents.sh + +## MUSIC Hydro +- singleEventHydro.sh +- checkAndCreateHydroEvents.sh +- makelist.sh to get a list of failed jobs +- getCrashedJobs.sh to get a list of failed Hydro events from the failed job list +- resubmitHydro.sh to resubmit the failed events diff --git a/resubmitHydro.sh b/resubmitHydro.sh new file mode 100644 index 0000000..953ee36 --- /dev/null +++ b/resubmitHydro.sh @@ -0,0 +1,30 @@ +#!/bin/bash +############################################## +# Resubmit failed hydro events # +# # +# argument $1 = list of failed events # +# (from getCrashedJobs.sh but needs edits) # +############################################## + +requiredFile="epsilon-u-Hydro-t0.6-0.dat" +testFile="surface_eps_0.3147.dat" + +for counter in `cat $1`; do + #echo Count $counter + checkDir=/lustre/alice/users/jcrkovsk/IPGlasmaEvents/Event$counter/Hydro06 + echo $checkDir + rm -rf $checkDir + aboveDir=/lustre/alice/users/jcrkovsk/IPGlasmaEvents/Event$counter + if [[ ! -d "$checkDir" ]]; then + echo "Creating directory ${checkDir}" + mkdir ${checkDir} + fi + if [[ -f "${aboveDir}/${requiredFile}" ]]; then + if [[ ! -f "${checkDir}/${testFile}" ]]; then + sbatch --job-name 06H$counter --time=8:00:00 singleEventHydro.sh $counter + fi + else + echo "Counter $counter: Missing IPGlasma files!!!" + fi +done +