diff --git a/LoopStructural/interpolators/supports/_3d_unstructured_tetra.py b/LoopStructural/interpolators/supports/_3d_unstructured_tetra.py index 9f9176706..40ab7a34d 100644 --- a/LoopStructural/interpolators/supports/_3d_unstructured_tetra.py +++ b/LoopStructural/interpolators/supports/_3d_unstructured_tetra.py @@ -1,6 +1,7 @@ """ Tetmesh based on cartesian grid for piecewise linear interpolation """ + from ast import Tuple import logging @@ -114,7 +115,7 @@ def _init_face_table(self): # use this to determine shared faces element_nodes = coo_matrix( - (np.ones(elements.shape[0] * 4), (rows.ravel(), elements.ravel())), + (np.ones(elements.shape[0] * 4), (rows.ravel(), elements[:, :4].ravel())), shape=(self.n_elements, self.n_nodes), dtype=bool, ).tocsr()