Skip to content

Commit 54aad3a

Browse files
committed
Make Global.zero accept subset kwarg
1 parent a43fcd3 commit 54aad3a

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)