Commit 2972fa26 authored by Frits Sweijen's avatar Frits Sweijen

Fix string join for Slurm file.

parent da76fb61
......@@ -373,7 +373,7 @@ class SpiderLauncher(JdlLauncher):
slurmfile = '#!/usr/bin/env bash\n'
slurmfile += '#SBATCH --nodes=1 --ntasks 1 --cpus-per-task={ncpu:d} -p {queue:s} --array 1-{njobs:d}%{concurrent:d} --output=job-%A_%a.out --error=job-%A_%a.err'
if self.wholenodes:
slurmfile += " ".join(slurmfile, '--exclusive')
slurmfile += " ".join([slurmfile, '--exclusive'])
slurmfile += '\n'
slurmfile += """
echo Job landed on $(hostname)
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