Skip to content

Commit

Permalink
compiler: Moved thickness arg vals in operator
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCaunt committed Oct 18, 2024
1 parent c8e3ef3 commit f533211
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions devito/operator/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,15 +648,15 @@ def _prepare_arguments(self, autotune=None, **kwargs):
for d in reversed(toposort):
args.update(d._arg_values(self._dspace[d], grid, **kwargs))

# Process Objects
for o in self.objects:
args.update(o._arg_values(grid=grid, **kwargs))

# Process SubDimensionThicknesses
for p in self.parameters:
if isinstance(p, SubDimensionThickness):
args.update(p._arg_values(grid=grid, **kwargs))

# Process Objects
for o in self.objects:
args.update(o._arg_values(grid=grid, **kwargs))

# Purge `kwargs`
kwargs.pop('args')
kwargs.pop('metadata')
Expand Down
1 change: 0 additions & 1 deletion devito/types/dimension.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@


Thickness = namedtuple('Thickness', 'left right')
SubDimensionOffset = namedtuple('SubDimensionOffset', 'value extreme thickness')


class Dimension(ArgProvider):
Expand Down

0 comments on commit f533211

Please sign in to comment.