From 7c510e71f6c261a0a81d7ae79793564c131019d6 Mon Sep 17 00:00:00 2001
From: Koen Hillewaert <koen.hillewaert@cenaero.be>
Date: Wed, 12 Aug 2009 16:43:16 +0000
Subject: [PATCH] visualisation up to order 4

---
 Graphics/drawPost.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Graphics/drawPost.cpp b/Graphics/drawPost.cpp
index ad2f2bd803..982995e019 100644
--- a/Graphics/drawPost.cpp
+++ b/Graphics/drawPost.cpp
@@ -25,7 +25,7 @@
 
 // we only "really" draw forst order elements (high order ones are
 // subdivided in adaptiveView beforehand)
-#define NMAX 20
+#define NMAX 35
 
 static void saturate(int nb, double val[NMAX][9], double vmin, double vmax, 
 		     int i0=0, int i1=1, int i2=2, int i3=3, 
@@ -948,7 +948,7 @@ static void addElementsInArrays(PView *p, bool preprocessNormalsOnly)
       if(opt->skipElement(type)) continue;
       int numComp = data->getNumComponents(opt->timeStep, ent, i);
       int numNodes = data->getNumNodes(opt->timeStep, ent, i);
-      if(numNodes > 20){
+      if(numNodes > 35){
         Msg::Error("Should never draw view with > 20 nodes per element: adapt?");
         continue;
       }
-- 
GitLab