From e91695347ff2dbe50de3217881e950fa7075cf2b Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sat, 17 Aug 2013 08:53:31 +0000
Subject: [PATCH] patch from bug report #199 for Abaqus Hex20 node ordering

---
 Geo/MHexahedron.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Geo/MHexahedron.h b/Geo/MHexahedron.h
index ca1d221024..c1802e03f4 100644
--- a/Geo/MHexahedron.h
+++ b/Geo/MHexahedron.h
@@ -242,7 +242,12 @@ class MHexahedron20 : public MHexahedron {
                                 9, 10, 12, 14, 15, 16, 18, 19, 17};
     return getVertex(map[num]);
   }
-  virtual MVertex *getVertexINP(int num){ return getVertexBDF(num); }
+  virtual MVertex *getVertexINP(int num)
+  {
+    static const int map[20]={0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 13,
+                              9, 16, 18, 19, 17, 10, 12, 14, 15};
+    return getVertex(map[num]);
+  }
   virtual MVertex *getVertexDIFF(int num)
   {
     static const int map[20] = {2, 3, 7, 6, 0, 1, 5, 4, 9, 18, 12,
-- 
GitLab