コード例 #1
0
 def __init__(self, exefile, **options):
     if 'community_interface' in options:
         interface = options['community_interface']
     else:
         interface = ForTestingInterface
     self.stopping_conditions = stopping_conditions.StoppingConditions(self)
     InCodeComponentImplementation.__init__(self, interface(exefile, **options), **options)
     self.my_particles = datamodel.Particles()
コード例 #2
0
 def __init__(self, exefile, **options):
     if 'community_interface' in options:
         interface = options['community_interface']
     else:
         interface = ForTestingInterface
     self.stopping_conditions = stopping_conditions.StoppingConditions(self)
     InCodeComponentImplementation.__init__(self, interface(exefile, **options), **options)
     self.my_particles = datamodel.Particles()
コード例 #3
0
 def __init__(self, **options):
     interface = DistributedParticlesInterface(
         implementation_factory = DistributedParticlesImplementation,
         **options
     )
     
     InCodeComponentImplementation.__init__(
         self,
         interface,
         **options
     )
コード例 #4
0
 def __init__(self, **options):
     InCodeComponentImplementation.__init__(self, iemicInterface(**options),
                                            **options)
コード例 #5
0
 def __init__(self, **options):
       InCodeComponentImplementation.__init__(self, TestInterface(), **options)
コード例 #6
0
 def __init__(self, exefile, **options):
     InCodeComponentImplementation.__init__(self, ForTestingInterface(exefile, **options), **options)
 def __init__(self, exefile, **options):
     InCodeComponentImplementation.__init__(
         self, ForTestingInterface(exefile, **options), **options)
コード例 #8
0
 def __init__(self, **options):
     InCodeComponentImplementation.__init__(self,
                                            EVtwinInterface(**options),
                                            **options)
     self.model_time = 0.0 | units.yr
コード例 #9
0
ファイル: interface.py プロジェクト: vdhelm/amuse
 def __init__(self, **options):
     InCodeComponentImplementation.__init__(self, EVtwinInterface(**options), **options)
     self.model_time = 0.0 | units.yr
コード例 #10
0
    def __init__(self, **options):
        interface = DistributedParticlesInterface(implementation_factory=DistributedParticlesImplementation, **options)

        InCodeComponentImplementation.__init__(self, interface, **options)