We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd3cd55 commit 8863b2dCopy full SHA for 8863b2d
1 file changed
devito/ir/support/basic.py
@@ -535,7 +535,7 @@ def function(self):
535
if q_comp_acc(self.source.access) and not q_comp_acc(self.sink.access):
536
# E.g., `source=ab[x].x` and `sink=ab[x]` -> `a(x)`
537
return self.source.access.function_access
538
- elif q_comp_acc(self.sink.access) and not q_comp_acc(self.source.access):
+ elif not q_comp_acc(self.source.access) and q_comp_acc(self.sink.access):
539
# E.g., `source=ab[x]` and `sink=ab[x].y` -> `b(x)`
540
return self.sink.access.function_access
541
else:
0 commit comments