From 2cce200a679123ec52c46f4abf72247cf8461d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Mon, 26 Aug 2019 10:37:25 +0200 Subject: [PATCH] fix Element(i,i,i) ctor --- libsrc/meshing/meshtype.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/meshing/meshtype.cpp b/libsrc/meshing/meshtype.cpp index b32068a0..db0932b1 100644 --- a/libsrc/meshing/meshtype.cpp +++ b/libsrc/meshing/meshtype.cpp @@ -236,8 +236,8 @@ namespace netgen np = 3; typ = TRIG; - for (int i = 0; i < ELEMENT2D_MAXPOINTS; i++) - pnum[i].Invalidate(); + for (int i = 3; i < ELEMENT2D_MAXPOINTS; i++) + pnum[i].Invalidate(); for (int i = 0; i < ELEMENT2D_MAXPOINTS; i++) geominfo[i].trignum = 0;