Added C3D8 elements. Removed unused close()

Close (or something similar) will be added when needed.
This commit is contained in:
Jacob Støren 2015-04-28 09:21:27 +02:00
parent 8be93ae448
commit 0560457cd2
3 changed files with 10 additions and 11 deletions

View File

@ -38,7 +38,6 @@ public:
virtual ~RifGeoMechReaderInterface();
virtual bool readFemParts(const std::string& fileName, RigFemPartCollection* geoMechCase) = 0;
virtual void close() = 0;
virtual std::vector<double> timeSteps() = 0;
virtual std::vector<std::string> scalarNodeResultNames() = 0;

View File

@ -25,11 +25,14 @@
#include <odb_API.h>
#include <map>
#include <iostream>
std::map<std::string, RigElementType> initFemTypeMap()
{
std::map<std::string, RigElementType> typeMap;
typeMap["C3D8R"] = HEX8;
typeMap["C3D8"] = HEX8;
typeMap["C3D8P"] = HEX8;
typeMap["CAX4"] = CAX4;
return typeMap;
@ -105,7 +108,13 @@ void readOdbFile(const std::string& fileName, RigFemPartCollection* femParts)
// Get the type
it = odbElmTypeToRigElmTypeMap.find(odbElm.type().cStr());
if (it == odbElmTypeToRigElmTypeMap.end()) continue; // Unsupported type
if (it == odbElmTypeToRigElmTypeMap.end())
{
#if 0
std::cout << "Unsupported element type :" << odbElm.type().cStr() << std::endl;
#endif
continue; // Unsupported type
}
RigElementType elmType = it->second;
@ -160,14 +169,6 @@ bool RifOdbReader::readFemParts(const std::string& fileName, RigFemPartCollectio
return true;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RifOdbReader::close()
{
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -38,7 +38,6 @@ public:
virtual ~RifOdbReader();
virtual bool readFemParts(const std::string& fileName, RigFemPartCollection* femParts);
virtual void close();
virtual std::vector<double> timeSteps();
virtual std::vector<std::string> scalarNodeResultNames() {return std::vector<std::string> ();};