Skip to content
Snippets Groups Projects
Commit a954a7e6 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Fix for HEX20 and HEX27 in MED format (patch from Nicolas Tardieu)

parent e3de496f
No related branches found
No related tags found
No related merge requests found
......@@ -130,15 +130,13 @@ int med2mshNodeIndex(med_geometrie_element med, int k)
return map[k];
}
case MED_HEXA20: {
static const int map[20] = {0, 3, 2, 1, 4, 7, 6, 5,
9, 13, 11, 8, 17, 19, 18, 16, 10, 15, 14, 12};
static const int map[20] = {0,1,3,2,4,5,6,7,8,9,10,11,16,17,18,19,12,13,14,15};
return map[k];
}
#if (MED_MAJOR_NUM == 3)
case MED_HEXA27: {
static const int map[27] = {0, 3, 2, 1, 4, 7, 6, 5,
9, 13, 11, 8, 17, 19, 18, 16, 10, 15, 14, 12,
20, 22, 24, 23, 21, 25, 26};
static const int map[27] = {0,1,3,2,4,5,6,7,8,9,10,11,16,17,18,19,12,13,14,15,
20, 22, 21, 23, 24, 25, 26};
return map[k];
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment