Skip to content
Snippets Groups Projects
Commit a955fe9b authored by Rafael Ravedutti's avatar Rafael Ravedutti
Browse files

Fix minor problem with cell reference

parent 52189ace
No related branches found
No related tags found
No related merge requests found
......@@ -66,10 +66,10 @@ class NeighborFor:
cell_neighbors = self.cell_lists.cell_neighbors
for shape in self.shapes:
start = sum([cell_nneighs[cell][s] for s in range(shape)], 0)
# FIXME: Without the inline, the 'cell' expression is being generated after
# its usage in the loop upper limit
cell = ScalarOp.inline(particle_cell[self.particle])
start = sum([cell_nneighs[cell][s] for s in range(shape)], 0)
for k in For(self.sim, start, start + cell_nneighs[cell][shape]):
particle_id = cell_neighbors[cell][k]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment