def __init__(self, problem, options, app_options=None, volumes=None, output_prefix='he:', **kwargs): """Bypasses PDESolverApp.__init__()!""" Application.__init__(self, problem.conf, options, output_prefix, **kwargs) self.problem = problem self.setup_options(app_options=app_options) self.setup_output_info(self.problem, self.options) self.volumes = volumes self.micro_coors = None
def __init__( self, problem, options, volume = None, output_prefix = 'he:', **kwargs ): """Bypasses SimpleApp.__init__()!""" Application.__init__( self, problem.conf, options, output_prefix, **kwargs ) self.problem = problem self.setup_options() self.setup_output_info( self.problem, self.options ) if volume is None: self.volume = self.problem.evaluate(self.app_options.total_volume) else: self.volume = volume
def __init__(self, problem, options, app_options=None, volume=None, output_prefix='he:', **kwargs): """Bypasses PDESolverApp.__init__()!""" Application.__init__( self, problem.conf, options, output_prefix, **kwargs ) self.problem = problem self.setup_options(app_options=app_options) self.setup_output_info( self.problem, self.options ) if volume is None: self.volume = self.problem.evaluate(self.app_options.total_volume) else: self.volume = volume