mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2360 Elm Props: Use correct index to id map
This commit is contained in:
@@ -85,6 +85,7 @@ public:
|
||||
cvf::Vec3f faceNormal(int elmentIndex, int faceIndex) const;
|
||||
|
||||
const RigFemPartGrid* structGrid() const;
|
||||
const std::vector<int>& elementIdxToId() const { return m_elementId; }
|
||||
|
||||
private:
|
||||
int m_elementPartId;
|
||||
|
||||
@@ -97,8 +97,6 @@ bool RigGeoMechCaseData::openAndReadFemParts(std::string* errorMessage)
|
||||
m_readerInterface = new RifOdbReader;
|
||||
#endif
|
||||
|
||||
m_elementPropertyReader = new RifElementPropertyReader;
|
||||
|
||||
if (m_readerInterface.notNull() && m_readerInterface->openFile(m_geoMechCaseFileName, errorMessage))
|
||||
{
|
||||
m_femParts = new RigFemPartCollection();
|
||||
@@ -110,6 +108,7 @@ bool RigGeoMechCaseData::openAndReadFemParts(std::string* errorMessage)
|
||||
progress.incrementProgress();
|
||||
progress.setProgressDescription("Calculating element neighbors");
|
||||
|
||||
m_elementPropertyReader = new RifElementPropertyReader(m_femParts->part(0)->elementIdxToId());
|
||||
// Initialize results containers
|
||||
m_femPartResultsColl = new RigFemPartResultsCollection(m_readerInterface.p(), m_elementPropertyReader.p(), m_femParts.p());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user