lib/coderunner/instance_methods.rb in coderunner-0.12.0 vs lib/coderunner/instance_methods.rb in coderunner-0.12.1

- old
+ new

@@ -1111,11 +1111,13 @@ ######################### The big tomale! run.job_no = run.execute # Start the simulation and get the job_number ######################### run.job_no = get_new_job_no(old_job_nos) unless run.job_no.kind_of? Integer # (if the execute command does not return the job number, look for it manually) # eputs 'run.job_no', run.job_no + run.output_file = nil # reset the output file run.output_file # Sets the output_file on first call + run.error_file = nil # reset the output file run.error_file # Sets the error_file on first call run.write_info eputs "Submitted run: #{run.run_name}" end else @@ -1132,10 +1134,11 @@ runs.compact! if options[:job_chain] and not @test_submission and runs.size > 0 FileUtils.makedirs('job_chain_files') @id_list = runs.map{|run| run.id} + #@executable ||= runs[0].executable @submission_script = script # A hook... default is to do nothing @submission_script = @run_class.modify_job_script(self, runs, @submission_script) # To get out of job_chain_files folder @submission_script = "cd .. \n" + @submission_script @@ -1177,13 +1180,15 @@ def rcp @run_class.rcp end def executable_name + return 'job_chain' unless @executable File.basename(@executable) end def executable_location + return '' unless @executable File.dirname(@executable) end def code_run_environment run_class.new(self).code_run_environment