From 3e67e70058ac6306cf4e32a04fb8d2c941921ae2 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 17 Aug 2009 21:20:38 +0000 Subject: [PATCH] Patch for second order UNV tetra node order by Takuya OSHIMA. (Not sure if this is right. But the new ordering seems to match Code_Aster and SYNOISE?) --- Geo/GModelIO_Mesh.cpp | 4 ++-- Geo/MTetrahedron.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Geo/GModelIO_Mesh.cpp b/Geo/GModelIO_Mesh.cpp index 1ebef3dfb2..023a73308f 100644 --- a/Geo/GModelIO_Mesh.cpp +++ b/Geo/GModelIO_Mesh.cpp @@ -1225,8 +1225,8 @@ int GModel::readUNV(const std::string &name) case 118: elements[3][elementary].push_back (new MTetrahedron10(vertices[0], vertices[2], vertices[4], vertices[9], - vertices[1], vertices[3], vertices[5], vertices[8], - vertices[6], vertices[7], num)); + vertices[1], vertices[3], vertices[5], vertices[6], + vertices[8], vertices[7], num)); dim = 3; break; case 104: case 115: diff --git a/Geo/MTetrahedron.h b/Geo/MTetrahedron.h index d2a0f3c9a4..1e13b294cb 100644 --- a/Geo/MTetrahedron.h +++ b/Geo/MTetrahedron.h @@ -205,7 +205,7 @@ class MTetrahedron10 : public MTetrahedron { virtual MVertex *getVertex(int num){ return num < 4 ? _v[num] : _vs[num - 4]; } virtual MVertex *getVertexUNV(int num) { - static const int map[10] = {0, 4, 1, 5, 2, 6, 8, 9, 7, 3}; + static const int map[10] = {0, 4, 1, 5, 2, 6, 7, 9, 8, 3}; return getVertex(map[num]); } virtual MVertex *getVertexBDF(int num) -- GitLab