module CodeRunner::Trinity::TrinityComponent

Attributes

trinity_run[RW]

Public Class Methods

new(runner, trinity_run, trinity_id) click to toggle source
Calls superclass method
# File lib/trinitycrmod/trinity_gs2.rb, line 13
                def initialize(runner, trinity_run, trinity_id)
                        super(runner)
                        @trinity_run = trinity_run
@trinity_id = trinity_id
                        self
                end

Public Instance Methods

dup() click to toggle source
# File lib/trinitycrmod/trinity_gs2.rb, line 31
def dup
        return self.class.new(@runner, @trinity_run, @trinity_id).learn_from(self)
end
error_file() click to toggle source
# File lib/trinitycrmod/trinity_gs2.rb, line 27
def error_file
        '../' + @trinity_run.error_file
        #'aa'
end
generate_run_name() click to toggle source
# File lib/trinitycrmod/trinity_gs2.rb, line 19
def generate_run_name
  @run_name = @trinity_run.flux_run_name(@trinity_id)
end
output_file() click to toggle source
# File lib/trinitycrmod/trinity_gs2.rb, line 22
def output_file
        #@output_file ||= '../' +  self.class.to_s
        '../' + @trinity_run.output_file
        #'aa'
end
save() click to toggle source
Calls superclass method
# File lib/trinitycrmod/trinity_gs2.rb, line 34
def save
        #p ['output_file', output_file]
        #p ['ancestors', self.class.ancestors]
        trinrun, @trinity_run = @trinity_run, nil
        component_runs.each{|cr| cr.trinity_run = nil}
        #@trinity_run = nil
        #@output_file = nil
        #GC.start
        #p self.instance_variables.find_all{|v| instance_variable_get(v).class.to_s =~  /NumRu::NetCDF/}
        super
        @trinity_run = trinrun
end