Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit e69d946

Browse files
authored
pyop3: ro_with_halos and rw_with_halos need broadcast (#27)
1 parent 16e2b62 commit e69d946

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyop3/buffer.py

+4
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ def data_rw_with_halos(self):
214214

215215
if not self._roots_valid:
216216
self._reduce_leaves_to_roots()
217+
if not self._leaves_valid:
218+
self._broadcast_roots_to_leaves()
217219

218220
# modifying owned values invalidates ghosts
219221
self._leaves_valid = False
@@ -224,6 +226,8 @@ def data_rw_with_halos(self):
224226
def data_ro_with_halos(self):
225227
if not self._roots_valid:
226228
self._reduce_leaves_to_roots()
229+
if not self._leaves_valid:
230+
self._broadcast_roots_to_leaves()
227231
return readonly(self._data)
228232

229233
@property

0 commit comments

Comments
 (0)