Skip to content

Commit

Permalink
compiler: SubDimension concretisation now uses Thickness concretisation
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCaunt committed Jan 7, 2025
1 parent 1017e63 commit 6835b2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions devito/ir/equations/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,8 @@ def _(d, mapper, rebuilt, sregistry):
# Already have a substitution for this dimension
return

tkns = tuple(t._rebuild(name=sregistry.make_name(prefix=t.name)) for t in d.tkns)
mapper.update({tkn0: tkn1 for tkn0, tkn1 in zip(d.tkns, tkns)})
mapper[d] = d._rebuild(thickness=tkns)
_concretize_subdims(d.tkns, mapper, rebuilt, sregistry)
mapper[d] = d._rebuild(thickness=tuple(mapper[tkn] for tkn in d.tkns))


@_concretize_subdims.register(ConditionalDimension)
Expand Down

0 comments on commit 6835b2b

Please sign in to comment.