Skip to content

Commit 315d5f5

Browse files
committed
Updated
1 parent 93a88c3 commit 315d5f5

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

pyop2/base.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,12 +1627,6 @@ def zero(self, subset=None):
16271627
"""Zero the data associated with this :class:`Dat`
16281628
16291629
:arg subset: A :class:`Subset` of entries to zero (optional)."""
1630-
<<<<<<< HEAD
1631-
if subset is None:
1632-
self.data[:] = 0
1633-
else:
1634-
self.data[subset.indices] = 0
1635-
=======
16361630
# If there is no subset we can safely zero the halo values.
16371631
if subset is None:
16381632
self._data[:] = 0
@@ -1641,7 +1635,6 @@ def zero(self, subset=None):
16411635
raise MapValueError("The subset and dataset are incompatible")
16421636
else:
16431637
self.data[subset.owned_indices] = 0
1644-
>>>>>>> origin/master
16451638

16461639
@collective
16471640
def copy(self, other, subset=None):
@@ -1652,11 +1645,6 @@ def copy(self, other, subset=None):
16521645
if other is self:
16531646
return
16541647
if subset is None:
1655-
<<<<<<< HEAD
1656-
other.data[:] = self.data_ro
1657-
else:
1658-
other.data[subset.indices] = self.data_ro[subset.indices]
1659-
=======
16601648
# If the current halo is valid we can also copy these values across.
16611649
if self.halo_valid:
16621650
other._data[:] = self._data
@@ -1667,7 +1655,6 @@ def copy(self, other, subset=None):
16671655
raise MapValueError("The subset and dataset are incompatible")
16681656
else:
16691657
other.data[subset.owned_indices] = self.data_ro[subset.owned_indices]
1670-
>>>>>>> origin/master
16711658

16721659
def __iter__(self):
16731660
"""Yield self when iterated over."""
@@ -1879,17 +1866,7 @@ def __imul__(self, other):
18791866

18801867
def __itruediv__(self, other):
18811868
"""Pointwise division or scaling of fields."""
1882-
<<<<<<< HEAD
1883-
from numbers import Number
1884-
if isinstance(other, Number):
1885-
self.data[:] /= other
1886-
else:
1887-
self._check_shape(other)
1888-
np.true_divide(self.data[:], other.data_ro, out=self.data[:], casting="unsafe")
1889-
return self
1890-
=======
18911869
return self._iop(other, operator.itruediv)
1892-
>>>>>>> origin/master
18931870

18941871
@collective
18951872
def global_to_local_begin(self, access_mode):

0 commit comments

Comments
 (0)