Skip to content

Commit 2ace9ad

Browse files
committed
Merge branch 'release' into pbrubeck/merge-release
2 parents b71fe31 + b462db8 commit 2ace9ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyop2/types/mat.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ def mult(self, mat, x, y):
11661166
# Column matrix
11671167
if x.sizes[1] == 1:
11681168
v.copy(y)
1169-
a = np.zeros(1, dtype=dtypes.ScalarType)
1169+
a = np.zeros((), dtype=dtypes.ScalarType)
11701170
if x.comm.rank == 0:
11711171
a[...] = x.array_r
11721172
else:
@@ -1183,7 +1183,7 @@ def multTranspose(self, mat, x, y):
11831183
# Row matrix
11841184
if x.sizes[1] == 1:
11851185
v.copy(y)
1186-
a = np.zeros(1, dtype=dtypes.ScalarType)
1186+
a = np.zeros((), dtype=dtypes.ScalarType)
11871187
if x.comm.rank == 0:
11881188
a[...] = x.array_r
11891189
else:
@@ -1208,7 +1208,7 @@ def multTransposeAdd(self, mat, x, y, z):
12081208
# Row matrix
12091209
if x.sizes[1] == 1:
12101210
v.copy(z)
1211-
a = np.zeros(1, dtype=dtypes.ScalarType)
1211+
a = np.zeros((), dtype=dtypes.ScalarType)
12121212
if x.comm.rank == 0:
12131213
a[...] = x.array_r
12141214
else:

0 commit comments

Comments
 (0)