Skip to content

Commit 6286fc0

Browse files
authored
Merge pull request #637 from OP2/connorjward/fix-subset-kwarg-error
Make Global.zero accept same kwargs as Dat.zero
2 parents a43fcd3 + 54aad3a commit 6286fc0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pyop2/types/glob.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ def copy(self, other, subset=None):
149149
other.data = np.copy(self.data_ro)
150150

151151
@mpi.collective
152-
def zero(self):
152+
def zero(self, subset=None):
153+
assert subset is None
153154
self._data[...] = 0
154155

155156
@mpi.collective

0 commit comments

Comments
 (0)