Skip to content

Commit 284e565

Browse files
committed
Removes clipping from ravel_multi_index
It has already been clipped above
1 parent 4d74c17 commit 284e565

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

discretize/tensor_mesh.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,9 +778,7 @@ def point2index(self, locs): # NOQA D102
778778
for n, p in zip(cell_bounds, locs.T)
779779
)
780780
# and of course, we are fortran ordered in a tensor mesh.
781-
return np.ravel_multi_index(
782-
multi_inds, self.shape_cells, order="F", mode="clip"
783-
)
781+
return np.ravel_multi_index(multi_inds, self.shape_cells, order="F")
784782

785783
def _repr_attributes(self):
786784
"""Represent attributes of the mesh."""

0 commit comments

Comments
 (0)