(#513) Added a HEX8P element type to distinguish C3D8 and C3D8P

This commit is contained in:
Jacob Støren
2015-09-25 19:31:50 +02:00
parent aa36a3f5e6
commit 5097082f09
7 changed files with 14 additions and 8 deletions

View File

@@ -104,7 +104,7 @@ std::map<std::string, RigElementType> initFemTypeMap()
std::map<std::string, RigElementType> typeMap;
typeMap["C3D8R"] = HEX8;
typeMap["C3D8"] = HEX8;
typeMap["C3D8P"] = HEX8;
typeMap["C3D8P"] = HEX8P;
typeMap["CAX4"] = CAX4;
return typeMap;
@@ -141,6 +141,7 @@ const int* localElmNodeToIntegrationPointMapping(RigElementType elmType)
switch (elmType)
{
case HEX8:
case HEX8P:
return HEX8_Mapping;
break;
case CAX4: