Skip to content

Commit 36b3e76

Browse files
committed
Copy, don't overwrite.
1 parent a060ebe commit 36b3e76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyop2/host.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def c_map_bcs(self, sign, is_facet):
538538
for location, name in m.implicit_bcs:
539539
if location == "bottom":
540540
if bottom_masks is None:
541-
bottom_masks = m.bottom_mask[name]
541+
bottom_masks = m.bottom_mask[name].copy()
542542
else:
543543
bottom_masks += m.bottom_mask[name]
544544
need_bottom = True
@@ -565,7 +565,7 @@ def c_map_bcs(self, sign, is_facet):
565565
for location, name in m.implicit_bcs:
566566
if location == "top":
567567
if top_masks is None:
568-
top_masks = m.top_mask[name]
568+
top_masks = m.top_mask[name].copy()
569569
else:
570570
top_masks += m.top_mask[name]
571571
need_top = True

0 commit comments

Comments
 (0)