Only add processPerNode if there is a jobSubmitterCommand
if (moduleCommands != null) for(mc in moduleCommands) out.print mc +'\n'
if (workingDirectory != null && workingDirectory != "") out.print 'cd ' + workingDirectory +'\n'
if (preJobCommands != null) for(pjc in preJobCommands) out.print pjc +'\n'
- if (jobSubmitterCommand != null && jobSubmitterCommand != "") out.print jobSubmitterCommand + ' '
+ if (jobSubmitterCommand != null && jobSubmitterCommand != "") {
+ out.print jobSubmitterCommand + ' '
if (processPerNode != null && processPerNode != "") out.print processPerNode + ' '
+ }
if (executablePath != null && executablePath != "") out.print executablePath + ' '
if (inputs != null) for(input in inputs) out.print input + ' '
out.print '\n'
