lib/coderunner/system_modules/moab.rb in coderunner-0.11.13 vs lib/coderunner/system_modules/moab.rb in coderunner-0.11.14
- old
+ new
@@ -23,9 +23,14 @@
def mpi_prog
"aprun -n #{nprocstot} -N #{ppn}"
end
+ def nprocstot
+
+ nodes, ppn = @nprocs.split(/x/)
+ nprocstot = nodes.to_i * ppn.to_i
+ end
def run_command
# "qsub #{batch_script_file}"
if (ENV['CODE_RUNNER_LAUNCHER'].size > 0 rescue false)
return %[mpiexec -np #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}]
else