diff --git a/discretize/base/base_tensor_mesh.py b/discretize/base/base_tensor_mesh.py index dcd28f346..58375b19c 100644 --- a/discretize/base/base_tensor_mesh.py +++ b/discretize/base/base_tensor_mesh.py @@ -721,6 +721,7 @@ def _get_interpolation_matrix( raise ValueError("Points outside of mesh") else: indZeros = np.logical_not(self.is_inside(loc)) + loc = loc.copy() loc[indZeros, :] = np.array([v.mean() for v in self.get_tensor("CC")]) location_type = self._parse_location_type(location_type)