We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c5dbcd commit 70e128dCopy full SHA for 70e128d
discretize/base/base_tensor_mesh.py
@@ -721,6 +721,7 @@ def _get_interpolation_matrix(
721
raise ValueError("Points outside of mesh")
722
else:
723
indZeros = np.logical_not(self.is_inside(loc))
724
+ loc = loc.copy()
725
loc[indZeros, :] = np.array([v.mean() for v in self.get_tensor("CC")])
726
727
location_type = self._parse_location_type(location_type)
0 commit comments