コード例 #1
0
 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
コード例 #2
0
ファイル: engine.py プロジェクト: xiaoyao79/sfepy
 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
コード例 #3
0
ファイル: engine.py プロジェクト: olivierverdier/sfepy
    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
コード例 #4
0
ファイル: engine.py プロジェクト: mfkiwl/sfepy
    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