lib/coderunner/run.rb in coderunner-0.14.4 vs lib/coderunner/run.rb in coderunner-0.14.5

- old
+ new

@@ -663,11 +663,11 @@ def generate_run_name @run_name = %[v#@version] + @naming_pars.inject("") do |str, par| str+="_#{par}_#{send(par).to_s[0...8]}" end - #FVW: special case for preamble which is not an input paramter and for which 'send' does not work - if @naming_pars.include?:preamble and @restart_id + #FVW: special case for preamble which is not an input parameter and for which 'send' does not work + if @restart_id and @runner.run_list[@restart_id].preamble @run_name += "_preamble_#{@runner.run_list[@restart_id].preamble.to_s[0...8]}" end @run_name = @run_name.gsub(/\s+/, "_").gsub(/\//, '') + "_id_#@id" end