コード例 #1
0
 def get_distribution(self):
     """return the list of cells and the number of particles in each
     cluster to be used for distribution to processes"""
     self.calc()
     proc_blocks = self.proc_blocks
     proc_num_particles = self.particle_loads
     cell_proc = LoadBalancer.get_block_proc(proc_blocks=proc_blocks)
     return cell_proc, proc_num_particles
コード例 #2
0
 def get_distribution(self):
     """return the list of cells and the number of particles in each
     cluster to be used for distribution to processes"""
     self.calc()
     proc_blocks = self.proc_blocks
     proc_num_particles = self.particle_loads
     cell_proc = LoadBalancer.get_block_proc(proc_blocks=proc_blocks)
     return cell_proc, proc_num_particles