diff --git a/magritte/mesher.py b/magritte/mesher.py index 22fe3649..a9f34b2b 100644 --- a/magritte/mesher.py +++ b/magritte/mesher.py @@ -66,7 +66,7 @@ def get_non_point(self): def del_non_point(self, p): # remove the non-connected point self.points = np.delete(self.points, p, 0) - self.neighbors = np.delete(self.neighbors, p, 0) + self.neighbors.pop(p) # Change all indices, since a point got removed self.tetras = relocate_indices(self.tetras, p) self.edges = relocate_indices(self.edges, p)