We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0379ba commit 0aa1c2aCopy full SHA for 0aa1c2a
1 file changed
devito/ir/clusters/cluster.py
@@ -655,6 +655,12 @@ def __hash__(self):
655
def concatenate(cls, *cgroups):
656
return list(chain(*cgroups))
657
658
+ def rebuild(self, **kwargs):
659
+ clusters = kwargs.get('clusters', self)
660
+ ispace = kwargs.get('ispace', self.ispace)
661
+
662
+ return self.__class__(clusters, ispace=ispace)
663
664
@cached_property
665
def exprs(self):
666
return flatten(c.exprs for c in self)
@@ -663,6 +669,10 @@ def exprs(self):
669
def scope(self):
670
return Scope(exprs=self.exprs)
671
672
+ @cached_property
673
+ def functions(self):
674
+ return self.scope.functions
675
676
667
677
def ispace(self):
668
678
return self._ispace
0 commit comments