Skip to content

Commit a214f6d

Browse files
committed
dsl: Fixed oversight with differentiable
1 parent 9d42649 commit a214f6d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

devito/finite_differences/differentiable.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ def dimensions(self):
8787
return tuple(filter_ordered(flatten(getattr(i, 'dimensions', ())
8888
for i in self._args_diff)))
8989

90+
@cached_property
91+
def root_dimensions(self):
92+
"""Tuple of root Dimensions of the physical space Dimensions."""
93+
return tuple(d.root for d in self.dimensions if d.is_Space)
94+
9095
@property
9196
def indices_ref(self):
9297
"""The reference indices of the object (indices at first creation)."""

0 commit comments

Comments
 (0)