Skip to content

Commit

Permalink
misc: Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCaunt committed Jul 30, 2024
1 parent 50d709d commit db231d0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions devito/ir/equations/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ def _(d, mapper, rebuilt, sregistry):
# Already have a substitution for this dimension
return

# name = sregistry.make_name(prefix=d.name)
# ltkn, rtkn = MultiSubDimension._symbolic_thickness(name)
tkns0 = MultiSubDimension._symbolic_thickness(d.name)
tkns1 = [tkn._rebuild(name=sregistry.make_name(prefix=tkn.name))
for tkn in tkns0]
Expand Down
1 change: 1 addition & 0 deletions devito/passes/iet/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ def update_args(root, efuncs, dag):
# The parameters/arguments lists may have changed since a pass may have:
# 1) introduced a new symbol
new_params = derive_parameters(root)

# 2) defined a symbol for which no definition was available yet (e.g.
# via a malloc, or a Dereference)
defines = FindSymbols('defines').visit(root.body)
Expand Down
6 changes: 0 additions & 6 deletions tests/test_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,6 @@ def test_findexed(self, pickle):

assert new_fi.name == fi.name
assert new_fi.accessor == 'fL'
from sympy import preorder_traversal
import sympy as sp
for i, j in zip(fi.indices, new_fi.indices):
for ia, ja in zip(preorder_traversal(i), preorder_traversal(j)):
print(ia, ja, type(ia), type(ja), ia == ja,
isinstance(ia, sp.core.Basic), isinstance(ja, sp.core.Basic))
assert new_fi.indices == (x+1, y, z-2)
assert new_fi.strides_map == fi.strides_map

Expand Down

0 comments on commit db231d0

Please sign in to comment.