Skip to content

Commit

Permalink
k
Browse files Browse the repository at this point in the history
  • Loading branch information
ksagiyam committed Dec 5, 2024
1 parent 0bf2608 commit 9df3f21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyop2/types/dat.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,10 +797,10 @@ def vec_context(self, access):
:param access: Access descriptor: READ, WRITE, or RW."""
size = self.dataset.size
if self.dataset._apply_local_global_filter and access is not Access.WRITE:
self._data_filtered[:] = self._data[:size][self._data_filter]
self._data_filtered[:] = self._data[:size][self._data_filter]
yield self._vec
if self.dataset._apply_local_global_filter and access is not Access.READ:
self._data[:size][self._data_filter] = self._data_filtered[:]
self._data[:size][self._data_filter] = self._data_filtered[:]
if access is not Access.READ:
self.halo_valid = False

Expand Down

0 comments on commit 9df3f21

Please sign in to comment.