mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added C3D8 elements. Removed unused close()
Close (or something similar) will be added when needed.
This commit is contained in:
parent
8be93ae448
commit
0560457cd2
@ -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;
|
||||
|
@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -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> ();};
|
||||
|
Loading…
Reference in New Issue
Block a user