lib/coderunner/system_modules/archer.rb in coderunner-0.13.24 vs lib/coderunner/system_modules/archer.rb in coderunner-0.13.25
- old
+ new
@@ -1,17 +1,17 @@
class CodeRunner
require SCRIPT_FOLDER + '/system_modules/moab.rb'
- module Hector
+ module Archer
include Moab
def batch_script
raise "Please specify project" unless @project
(eputs "Warning: number of wall mins is not recommended (20, 60, 180, 360, 720 recomended)"; sleep 0.2) unless [20, 60, 180, 360, 720].include? @wall_mins.to_i
ppn_checks
hours, mins, secs = hours_minutes_seconds
-<<EOF
+<<EOF
#!/bin/bash --login
#PBS -N #{executable_name}.#{job_identifier}
#PBS -l select=#{nodes}
#PBS -l walltime=#{sprintf("%02d:%02d:%02d", hours, mins, secs)}
#{@project ? "#PBS -A #@project" : ""}
@@ -28,10 +28,10 @@
def max_ppn
24
end
- def mpi_prog
+ def mpi_prog
"aprun -n #{ppn}"
end
end