Commit 931c9c07 authored by Doak, Peter W's avatar Doak, Peter W
Browse files

fixed indexing bug in batched run example

parent e49c900b
......@@ -51,10 +51,10 @@ done
vrdlen=${#vrundirs[@]}
for vrun in $(seq 1 $vrdlen)
do
rundir=${vrundirs[$vrun]}
rundir=${vrundirs[$((vrun-1))]}
start=$(expr 1 + $(expr $(($vrun-1)) \* $CORES_PER_RUN ))
end=$(expr $vrun \* $CORES_PER_RUN)
echo "$start $end"
echo "$vrun $rundir $start $end"
awk -v start=$start -v end=$end 'NR >= start && NR <= end' pbs_nodefile > ${rundir}/pbs_nodefile
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment