From b65d63cf117950b408f67bd73f885b763694dd2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Thu, 10 Oct 2019 07:38:10 +0200 Subject: [PATCH] static array --- libsrc/visualization/vsmesh.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libsrc/visualization/vsmesh.cpp b/libsrc/visualization/vsmesh.cpp index 2e0ff9a7..d7b1059b 100644 --- a/libsrc/visualization/vsmesh.cpp +++ b/libsrc/visualization/vsmesh.cpp @@ -1029,8 +1029,11 @@ namespace netgen else glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, matcol); + static Point<3> xa[129]; + static Vec<3> na[129]; - + + for (int hi = 0; hi < seia.Size(); hi++) { SurfaceElementIndex sei = seia[hi]; @@ -1058,8 +1061,6 @@ namespace netgen if (curv.IsHighOrder()) // && curv.IsSurfaceElementCurved(sei)) { if (hoplotn > 128) hoplotn = 128; - Point<3> xa[129]; - Vec<3> na[129]; for (int i = 0; i < hoplotn; i++) {