mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Results from a case with Coarse cells is now finally ok.
p4#: 20344
This commit is contained in:
@@ -473,13 +473,6 @@ double RigGridBase::characteristicCellSize()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RigGridBase::matrixModelActiveCellCount()
|
||||
{
|
||||
if (m_matrixModelActiveCellCount == cvf::UNDEFINED_SIZE_T)
|
||||
{
|
||||
computeMatrixAndFractureModelActiveCellCount();
|
||||
}
|
||||
|
||||
CVF_ASSERT(m_matrixModelActiveCellCount != cvf::UNDEFINED_SIZE_T);
|
||||
|
||||
return m_matrixModelActiveCellCount;
|
||||
}
|
||||
|
||||
@@ -488,16 +481,9 @@ size_t RigGridBase::matrixModelActiveCellCount()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RigGridBase::fractureModelActiveCellCount()
|
||||
{
|
||||
if (m_fractureModelActiveCellCount == cvf::UNDEFINED_SIZE_T)
|
||||
{
|
||||
computeMatrixAndFractureModelActiveCellCount();
|
||||
}
|
||||
|
||||
CVF_ASSERT(m_fractureModelActiveCellCount != cvf::UNDEFINED_SIZE_T);
|
||||
|
||||
return m_fractureModelActiveCellCount;
|
||||
}
|
||||
|
||||
/*
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -506,20 +492,38 @@ void RigGridBase::computeMatrixAndFractureModelActiveCellCount()
|
||||
m_matrixModelActiveCellCount = 0;
|
||||
m_fractureModelActiveCellCount = 0;
|
||||
|
||||
size_t higestActiveIndexInMM = 0;
|
||||
size_t higestActiveIndexInFM = 0;
|
||||
|
||||
bool firstMMActiveCell = true;
|
||||
bool firstFMActiveCell = true;
|
||||
|
||||
|
||||
for (size_t i = 0; i < cellCount(); i++)
|
||||
{
|
||||
const RigCell& c = cell(i);
|
||||
|
||||
if (c.isActiveInMatrixModel())
|
||||
{
|
||||
if (c.activeIndexInMatrixModel() > higestActiveIndexInMM || firstMMActiveCell)
|
||||
{
|
||||
m_matrixModelActiveCellCount++;
|
||||
higestActiveIndexInMM = c.activeIndexInMatrixModel();
|
||||
firstMMActiveCell = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (c.isActiveInFractureModel())
|
||||
{
|
||||
if (c.activeIndexInFractureModel() > higestActiveIndexInFM || firstFMActiveCell)
|
||||
{
|
||||
m_fractureModelActiveCellCount++;
|
||||
higestActiveIndexInFM = c.activeIndexInFractureModel();
|
||||
firstFMActiveCell = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -537,6 +541,27 @@ cvf::ref<RigGridScalarDataAccess> RigGridBase::dataAccessObject(RifReaderInterfa
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigGridBase::setFractureModelActiveCellCount(size_t activeFractureModelCellCount)
|
||||
{
|
||||
m_fractureModelActiveCellCount = activeFractureModelCellCount;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigGridBase::setMatrixModelActiveCellCount(size_t activeMatrixModelCellCount)
|
||||
{
|
||||
m_matrixModelActiveCellCount = activeMatrixModelCellCount;
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user