From 3a866379ffc6d9dd07a231c966372619caac9566 Mon Sep 17 00:00:00 2001 From: Pariksheet Nanda Date: Thu, 16 May 2019 16:32:17 -0400 Subject: [PATCH] BUG: Fix #4 --- examples/script_that_sometimes_fails.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/script_that_sometimes_fails.sh b/examples/script_that_sometimes_fails.sh index 9617495..1da672c 100755 --- a/examples/script_that_sometimes_fails.sh +++ b/examples/script_that_sometimes_fails.sh @@ -14,6 +14,11 @@ prng () { a=1 b=$seed m=$SLURM_NTASKS + # Workaround bug# 4 + if (( $b % $m == 0 )) + then + b+=1 + fi # Recur as many times as the task id to generate different numbers # for each SLURM task. for i in $(seq 1 $ID)