Prepare for dual porosity data structures.

Renamed from activeCellIndex to activeMatrixCellIndex
p4#: 20285
This commit is contained in:
Magne Sjaastad
2013-01-29 14:56:55 +01:00
parent 66a41c1ab9
commit cd9d94f5f9
7 changed files with 12 additions and 12 deletions

View File

@@ -41,7 +41,7 @@ RigCell::RigCell() :
m_isActive(true),
m_isInvalid(false),
m_isWellCell(false),
m_globalActiveIndex(cvf::UNDEFINED_SIZE_T),
m_globalMatrixActiveIndex(cvf::UNDEFINED_SIZE_T),
m_cellIndex(cvf::UNDEFINED_SIZE_T)
{
memcpy(m_cornerIndices.m_array, undefinedCornersArray, 8*sizeof(size_t));

View File

@@ -49,8 +49,8 @@ public:
size_t cellIndex() const { return m_cellIndex; }
void setCellIndex(size_t val) { m_cellIndex = val; }
size_t globalActiveIndex() const { return m_globalActiveIndex; }
void setGlobalActiveIndex(size_t val) { m_globalActiveIndex = val; }
size_t globalMatrixActiveIndex() const { return m_globalMatrixActiveIndex; }
void setGlobalMatrixActiveIndex(size_t val) { m_globalMatrixActiveIndex = val; }
RigLocalGrid* subGrid() const { return m_subGrid; }
void setSubGrid(RigLocalGrid* subGrid) { m_subGrid = subGrid; }
@@ -85,6 +85,6 @@ private:
size_t m_parentCellIndex; ///< Grid cell index of the cell in the parent grid containing this cell
size_t m_mainGridCellIndex;
size_t m_globalActiveIndex; ///< This cell's running index of all the active calls in the reservoir. Used for result mapping
size_t m_cellIndex; ///< This cells index in the grid it belongs to.
size_t m_globalMatrixActiveIndex; ///< This cell's running index of all the active calls in the reservoir. Used for result mapping
size_t m_cellIndex; ///< This cells index in the grid it belongs to.
};

View File

@@ -255,7 +255,7 @@ double RigGridBase::cellScalar(size_t timeStepIndex, size_t scalarSetIndex, size
bool useGlobalActiveIndex = m_mainGrid->results()->isUsingGlobalActiveIndex(scalarSetIndex);
if (useGlobalActiveIndex)
{
resultValueIndex = cell(cellIndex).globalActiveIndex();
resultValueIndex = cell(cellIndex).globalMatrixActiveIndex();
if (resultValueIndex == cvf::UNDEFINED_SIZE_T) return HUGE_VAL;
}

View File

@@ -299,7 +299,7 @@ bool RigReservoirBuilderMock::staticResult(RigReservoir* reservoir, const QStrin
values->push_back(500);
}
cell.setGlobalActiveIndex(rIdx);
cell.setGlobalMatrixActiveIndex(rIdx);
++rIdx;
}
@@ -342,7 +342,7 @@ bool RigReservoirBuilderMock::dynamicResult(RigReservoir* reservoir, const QStri
values->push_back(500);
}
cell.setGlobalActiveIndex(rIdx);
cell.setGlobalMatrixActiveIndex(rIdx);
++rIdx;
}
}