Add results and update continue run script

This commit is contained in:
2018-11-06 12:50:17 +01:00
parent 0310721538
commit 2b48943513
3 changed files with 14 additions and 1 deletions

View File

@@ -9,6 +9,9 @@
#SBATCH -e tmp/stderr.log
#SBATCH --partition=ll_verylong
module unload intel
module load intel
setenv CURRENT_VERSION $1
setenv CONTINUE_VERSION $2
#"`/usr/bin/git describe --tags --long`"

12
csubmit
View File

@@ -15,7 +15,17 @@ if ( ! git diff-index --quiet --cached HEAD -- ) || ( ! git diff-files --quiet )
esac
fi
sbatch cbatch.tsh "`/usr/bin/git describe --tags --long`" $1
CURRENT_VERSION=`git describe --tags --long`
CONTINUE_VERSION=${1:-$CURRENT_VERSION}
if [ ! -f "runs/e2-estia_$CONTINUE_VERSION.run" ]; then
# get describe from previous version
echo "No run for revision $CONTINUE_VERSION, try to use previous version"
PREV_ID=`git log -n 2 --oneline --pretty=format:"%h" | tail -1`
CONTINUE_VERSION=`git describe --tags --long $PREV_ID`
fi
sbatch cbatch.tsh $CURRENT_VERSION $CONTINUE_VERSION
# waiting for batch job to start and send all output directly to terminal
sleep 2

Binary file not shown.