mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3604 Export completions. New feature 'Export Completion Data for Temporary LGRs'
This commit is contained in:
@@ -30,8 +30,7 @@
|
||||
RigGridBase::RigGridBase(RigMainGrid* mainGrid):
|
||||
m_gridPointDimensions(0,0,0),
|
||||
m_indexToStartOfCells(0),
|
||||
m_mainGrid(mainGrid),
|
||||
m_isTempGrid(false)
|
||||
m_mainGrid(mainGrid)
|
||||
{
|
||||
if (mainGrid == nullptr)
|
||||
{
|
||||
|
||||
@@ -75,6 +75,9 @@ public:
|
||||
|
||||
cvf::BoundingBox boundingBox();
|
||||
|
||||
virtual bool isTempGrid() const = 0;
|
||||
virtual const std::string& associatedWellPathName() const = 0;
|
||||
|
||||
protected:
|
||||
friend class RigMainGrid;//::initAllSubGridsParentGridPointer();
|
||||
void initSubGridParentPointer();
|
||||
@@ -105,10 +108,6 @@ public:
|
||||
bool isCellValid( size_t i, size_t j, size_t k ) const override;
|
||||
bool cellIJKNeighbor(size_t i, size_t j, size_t k, FaceType face, size_t* neighborCellIndex ) const override;
|
||||
|
||||
void setAsTempGrid(bool isTemp) { m_isTempGrid = isTemp; }
|
||||
bool isTempGrid() const { return m_isTempGrid; }
|
||||
|
||||
|
||||
private:
|
||||
std::string m_gridName;
|
||||
cvf::Vec3st m_gridPointDimensions;
|
||||
@@ -119,8 +118,6 @@ private:
|
||||
cvf::BoundingBox m_boundingBox;
|
||||
|
||||
std::vector<std::array<size_t, 6>> m_coarseningBoxInfo;
|
||||
|
||||
bool m_isTempGrid;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
RigLocalGrid::RigLocalGrid(RigMainGrid* mainGrid):
|
||||
RigGridBase(mainGrid),
|
||||
m_parentGrid(nullptr),
|
||||
m_positionInParentGrid(cvf::UNDEFINED_SIZE_T)
|
||||
m_positionInParentGrid(cvf::UNDEFINED_SIZE_T),
|
||||
m_isTempGrid(false),
|
||||
m_associatedWellPathName("")
|
||||
{
|
||||
|
||||
}
|
||||
@@ -64,3 +66,35 @@ void RigLocalGrid::setPositionInParentGrid(size_t positionInParentGrid)
|
||||
{
|
||||
m_positionInParentGrid = positionInParentGrid;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigLocalGrid::setAsTempGrid(bool isTemp)
|
||||
{
|
||||
m_isTempGrid = isTemp;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RigLocalGrid::isTempGrid() const
|
||||
{
|
||||
return m_isTempGrid;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigLocalGrid::setAssociatedWellPathName(const std::string& wellPathName)
|
||||
{
|
||||
m_associatedWellPathName = wellPathName;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const std::string& RigLocalGrid::associatedWellPathName() const
|
||||
{
|
||||
return m_associatedWellPathName;
|
||||
}
|
||||
|
||||
@@ -31,8 +31,16 @@ public:
|
||||
size_t positionInParentGrid() const;
|
||||
void setPositionInParentGrid(size_t positionInParentGrid);
|
||||
|
||||
void setAsTempGrid(bool isTemp);
|
||||
bool isTempGrid() const override;
|
||||
|
||||
void setAssociatedWellPathName(const std::string& wellPathName);
|
||||
const std::string& associatedWellPathName() const override;
|
||||
|
||||
private:
|
||||
RigGridBase * m_parentGrid;
|
||||
size_t m_positionInParentGrid;
|
||||
bool m_isTempGrid;
|
||||
std::string m_associatedWellPathName;
|
||||
};
|
||||
|
||||
|
||||
@@ -754,3 +754,20 @@ cvf::BoundingBox RigMainGrid::boundingBox() const
|
||||
|
||||
return m_boundingBox;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RigMainGrid::isTempGrid() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const std::string& RigMainGrid::associatedWellPathName() const
|
||||
{
|
||||
static const std::string EMPTY_STRING;
|
||||
return EMPTY_STRING;
|
||||
}
|
||||
|
||||
@@ -90,6 +90,9 @@ public:
|
||||
|
||||
cvf::BoundingBox boundingBox() const;
|
||||
|
||||
bool isTempGrid() const override;
|
||||
const std::string& associatedWellPathName() const override;
|
||||
|
||||
private:
|
||||
void initAllSubCellsMainGridCellIndex();
|
||||
void buildCellSearchTree();
|
||||
|
||||
Reference in New Issue
Block a user