Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
BUG: Fix #4
  • Loading branch information
pan14001 committed May 16, 2019
1 parent ac15023 commit 3a86637
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/script_that_sometimes_fails.sh
Expand Up @@ -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)
Expand Down

0 comments on commit 3a86637

Please sign in to comment.