We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fd5f19 commit 17438acCopy full SHA for 17438ac
1 file changed
devito/ir/equations/equation.py
@@ -49,11 +49,9 @@ def directions(self):
49
@property
50
def dtype(self):
51
try:
52
- rhs_dtype = self.rhs.dtype
+ return infer_dtype({self.lhs.dtype, self.rhs.dtype} - {None})
53
except AttributeError:
54
- rhs_dtype = None
55
-
56
- return infer_dtype({self.lhs.dtype, rhs_dtype} - {None})
+ return self.lhs.dtype
57
58
59
def state(self):
0 commit comments