We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddb877e commit 01255cfCopy full SHA for 01255cf
1 file changed
devito/ir/equations/equation.py
@@ -92,9 +92,11 @@ def __repr__(self):
92
if not self.is_Reduction:
93
return super().__repr__()
94
elif self.operation is OpInc:
95
- return f'{self.lhs} += {self.rhs}'
+ return f'Inc({self.lhs}, {self.rhs})'
96
else:
97
- return f'{self.lhs} = {self.operation}({self.rhs})'
+ return f'Eq({self.lhs}, {self.operation}({self.rhs}))'
98
+
99
+ __str__ = __repr__
100
101
# Pickling support
102
__reduce_ex__ = Pickable.__reduce_ex__
0 commit comments