Skip to content

Commit

Permalink
Dictionary tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
PapyChacal committed Aug 21, 2024
1 parent 233b70a commit 89e774c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions devito/ir/xdsl_iet/cluster_to_ssa.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def _visit_math_nodes(self, dim: SteppingDimension, node: Expr,
if output_indexed is not None:
space_offsets = ([node.indices[d] - output_indexed.indices[d]
for d in node.function.space_dimensions])
temp = self.function_values[(node.function, time_offset)]
temp = self.apply_temps[(node.function, time_offset)]
access = stencil.AccessOp.get(temp, space_offsets)
return access.res
# Otherwise, generate a load op
Expand Down Expand Up @@ -378,8 +378,6 @@ def build_stencil_step(self, dim: SteppingDimension, eq: LoweredEq) -> None:
apply_arg.name_hint = apply_op.name_hint.replace("temp", "blk")

self.apply_temps = {k: v for k, v in zip(read_functions, apply.region.block.args)}
# Update the function values with the new temps
self.function_values |= self.apply_temps

with ImplicitBuilder(apply.region.block):
stencil.ReturnOp.get([self._visit_math_nodes(dim, eq.rhs, eq.lhs)])
Expand Down

0 comments on commit 89e774c

Please sign in to comment.