From 9b3578740f2a1d85245e4933ebf27c772a811db0 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Thu, 9 Sep 2021 11:49:38 +0200 Subject: [PATCH] a hex has 12 edges, doesn't it? --- libsrc/meshing/curvedelems.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libsrc/meshing/curvedelems.cpp b/libsrc/meshing/curvedelems.cpp index 96e05a9d..79f031a4 100644 --- a/libsrc/meshing/curvedelems.cpp +++ b/libsrc/meshing/curvedelems.cpp @@ -2912,7 +2912,7 @@ namespace netgen int ii = 8; const ELEMENT_EDGE * edges = MeshTopology::GetEdges1 (HEX); - for (int i = 0; i < 8; i++) + for (int i = 0; i < 12; i++) { int eorder = edgeorder[info.edgenrs[i]]; if (eorder >= 2) @@ -3606,8 +3606,7 @@ namespace netgen int ii = 8; const ELEMENT_EDGE * edges = MeshTopology::GetEdges1 (HEX); - - for (int i = 0; i < 8; i++) + for (int i = 0; i < 12; i++) { int eorder = edgeorder[info.edgenrs[i]]; if (eorder >= 2) @@ -3836,7 +3835,7 @@ namespace netgen // int ii = 8; const ELEMENT_EDGE * edges = MeshTopology::GetEdges1 (HEX); - for (int i = 0; i < 8; i++) + for (int i = 0; i < 12; i++) { int eorder = edgeorder[info.edgenrs[i]]; if (eorder >= 2)