diff --git a/Graphics/drawPost.cpp b/Graphics/drawPost.cpp
index fc0904026d4539a5ce8e1a6c54a2e94f941d5427..8a0c975d9cc034b1cba22c8266707b5e929db972 100644
--- a/Graphics/drawPost.cpp
+++ b/Graphics/drawPost.cpp
@@ -23,7 +23,10 @@
 #include "matheval.h"
 #endif
 
-#define NMAX 20
+
+extern Context_T CTX;
+//KH: enlarged size to allow for 4th order mappings (tets)
+#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,