Skip to content

Commit 220bf59

Browse files
authored
Merge pull request #2758 from devitocodes/tkn-type
api: fix subdimension thickness type
2 parents 6139faa + bea0192 commit 220bf59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

devito/types/dimension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ class AbstractSubDimension(DerivedDimension):
613613
__rargs__ = DerivedDimension.__rargs__ + ('thickness',)
614614
__rkwargs__ = ()
615615

616-
_thickness_type = Symbol
616+
_thickness_type = Thickness
617617

618618
def __init_finalize__(self, name, parent, thickness, **kwargs):
619619
super().__init_finalize__(name, parent)
@@ -634,7 +634,7 @@ def _symbolic_thickness(self, **kwargs):
634634
kwargs = {'dtype': np.int32, 'is_const': True, 'nonnegative': True}
635635

636636
names = ["%s_%stkn" % (self.parent.name, s) for s in ('l', 'r')]
637-
return SubDimensionThickness(*[Symbol(name=n, **kwargs) for n in names])
637+
return SubDimensionThickness(*[Thickness(name=n, **kwargs) for n in names])
638638

639639
@cached_property
640640
def symbolic_min(self):

0 commit comments

Comments
 (0)