Skip to content

Commit

Permalink
Fixing initial cell radius.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolanddenis committed Dec 1, 2017
1 parent dd32e62 commit b24e51b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nbody/numba/nbody/barnes_hut_array/quadTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, bmin, bmax, size):
self.cell_center = np.zeros((2*size+1, 2))
self.cell_radius = np.zeros(2*size+1)
self.cell_center[0] = self.center
self.cell_radius[0] = self.box_size
self.cell_radius[0] = 0.5*self.box_size

def buildTree(self, particles):
self.ncell = numba_functions.buildTree(self.center, self.box_size, self.child, self.cell_center, self.cell_radius, particles)
Expand Down
2 changes: 1 addition & 1 deletion nbody/python/nbody/barnes_hut_array/quadTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, bmin, bmax, size):
self.cell_center = np.zeros((2*size+1, 2))
self.cell_radius = np.zeros(2*size+1)
self.cell_center[0] = self.center
self.cell_radius[0] = self.box_size
self.cell_radius[0] = 0.5*self.box_size

def buildTree(self, particles):
for ip, p in enumerate(particles):
Expand Down

0 comments on commit b24e51b

Please sign in to comment.