From b53eedbab694cfee938412a66dc548280942f249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Sat, 16 Jul 2016 15:54:30 +0200 Subject: [PATCH] =?UTF-8?q?fix=20for=20curved=20elements=20order=3D1=20(th?= =?UTF-8?q?x=20Alexander=20Schl=C3=BCter)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsrc/meshing/curvedelems.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libsrc/meshing/curvedelems.cpp b/libsrc/meshing/curvedelems.cpp index abd3fd9f..c994a411 100644 --- a/libsrc/meshing/curvedelems.cpp +++ b/libsrc/meshing/curvedelems.cpp @@ -2200,7 +2200,8 @@ namespace netgen for (int k = 0; k < DIM_SPACE; k++) mapped_x[k] += p(k) * lami[j]; } - + if (info.order == 1) break; + const ELEMENT_EDGE * edges = MeshTopology::GetEdges1 (TRIG); for (int i = 0; i < 3; i++) { @@ -3468,6 +3469,7 @@ namespace netgen for (int k = 0; k < 3; k++) mapped_x[k] += p(k) * lami[j]; } + if (info.order == 1) break; const ELEMENT_EDGE * edges = MeshTopology::GetEdges1 (TET); for (int i = 0; i < 6; i++)