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 31, 2024
1 parent 06690ec commit a98d91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/ir/equations/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def concretize_subdims(exprs, **kwargs):
# reset to prevent recovery of the original SubDimensions
functions = {f for f in retrieve_functions(exprs) if f.is_Array}
for f in functions:
dimensions = tuple(mapper[d] if d in mapper else d for d in f.dimensions)
dimensions = tuple(mapper.get(d, d) for d in f.dimensions)
if dimensions != f.dimensions:
# A dimension has been rebuilt, so build a mapper for Indexed
mapper[f.indexed] = f._rebuild(dimensions=dimensions, function=None).indexed
Expand Down

0 comments on commit a98d91f

Please sign in to comment.