mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Created FemPartCollection
Used that instead against reader to make a "results free" interface regarding reading the element models.
This commit is contained in:
@@ -18,17 +18,13 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RigGeoMechCaseData.h"
|
||||
#include "RigFemPart.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigGeoMechCaseData::RigGeoMechCaseData()
|
||||
{
|
||||
|
||||
m_femParts = new RigFemPartCollection();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -42,23 +38,7 @@ RigGeoMechCaseData::~RigGeoMechCaseData()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigGeoMechCaseData::addFemPart(RigFemPart* part)
|
||||
RigFemPartCollection* RigGeoMechCaseData::femParts()
|
||||
{
|
||||
m_femParts.push_back(part);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigFemPart* RigGeoMechCaseData::part(size_t index)
|
||||
{
|
||||
return m_femParts[index].p();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RigGeoMechCaseData::partCount()
|
||||
{
|
||||
return m_femParts.size();
|
||||
return m_femParts.p();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user