Skip to content

Commit

Permalink
dsl: Add ArgProvider inheritance to AbstractSymbol
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCaunt committed Nov 13, 2024
1 parent 2f18ab8 commit ff4b4d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions devito/types/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def bound_symbols(self):
return set()


class AbstractSymbol(sympy.Symbol, Basic, Pickable, Evaluable):
class AbstractSymbol(sympy.Symbol, Basic, Pickable, Evaluable, ArgProvider):

"""
Base class for scalar symbols.
Expand Down Expand Up @@ -549,7 +549,7 @@ def __new__(cls, *args, **kwargs):
__hash__ = Uncached.__hash__


class Scalar(Symbol, ArgProvider):
class Scalar(Symbol):

"""
Like a Symbol, but in addition it can pass runtime values to an Operator.
Expand Down
9 changes: 0 additions & 9 deletions devito/types/dimension.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,6 @@ def local(self):
def value(self):
return self._value

def _arg_check(self, *args, **kwargs):
pass

def _arg_values(self, grid=None, **kwargs):
# Allow override of thickness values to disable BCs
# However, arguments from the user are considered global
Expand All @@ -597,12 +594,6 @@ def _arg_values(self, grid=None, **kwargs):

return {self.name: tkn}

def _arg_finalize(self, *args, **kwargs):
return {}

def _arg_apply(self, *args, **kwargs):
pass


class AbstractSubDimension(DerivedDimension):

Expand Down

0 comments on commit ff4b4d0

Please sign in to comment.