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

Fix inline expressions generated in pack/unpack routines

parent d42439a2
Branches
Tags v1.0.0
No related merge requests found
...@@ -199,7 +199,7 @@ class PackGhostParticles(Lowerable): ...@@ -199,7 +199,7 @@ class PackGhostParticles(Lowerable):
step_indexes = self.comm.dom_part.step_indexes(self.step) step_indexes = self.comm.dom_part.step_indexes(self.step)
start = self.comm.send_offsets[step_indexes[0]] start = self.comm.send_offsets[step_indexes[0]]
for i in For(self.sim, start, start + sum([self.comm.nsend[j] for j in step_indexes])): for i in For(self.sim, start, BinOp.inline(start + sum([self.comm.nsend[j] for j in step_indexes]))):
p_offset = 0 p_offset = 0
m = send_map[i] m = send_map[i]
for p in self.prop_list: for p in self.prop_list:
...@@ -239,7 +239,7 @@ class UnpackGhostParticles(Lowerable): ...@@ -239,7 +239,7 @@ class UnpackGhostParticles(Lowerable):
step_indexes = self.comm.dom_part.step_indexes(self.step) step_indexes = self.comm.dom_part.step_indexes(self.step)
start = self.comm.recv_offsets[step_indexes[0]] start = self.comm.recv_offsets[step_indexes[0]]
for i in For(self.sim, start, start + sum([self.comm.nrecv[j] for j in step_indexes])): for i in For(self.sim, start, BinOp.inline(start + sum([self.comm.nrecv[j] for j in step_indexes]))):
p_offset = 0 p_offset = 0
for p in self.prop_list: for p in self.prop_list:
if p.type() == Types.Vector: if p.type() == Types.Vector:
......
...@@ -116,6 +116,9 @@ class AddHostReferencesToModules(Mutator): ...@@ -116,6 +116,9 @@ class AddHostReferencesToModules(Mutator):
return ast_node return ast_node
def mutate_Decl(self, ast_node):
return ast_node
def mutate_HostRef(self, ast_node): def mutate_HostRef(self, ast_node):
return ast_node return ast_node
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment