lib/coderunner/system_modules/generic_linux.rb in coderunner-0.12.5 vs lib/coderunner/system_modules/generic_linux.rb in coderunner-0.12.6
- old
+ new
@@ -13,9 +13,10 @@
end
end
def run_command
if rcp.uses_mpi
+ raise "Number of processors (nprocs) not specified" unless @nprocs
return %[time mpirun -np #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}]
else
return %[#{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}]
end
end