mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added special handling of combined transmissibility
This commit is contained in:
@@ -40,5 +40,7 @@ public:
|
||||
};
|
||||
|
||||
static QString undefinedResultName() { return "None"; }
|
||||
|
||||
static QString combinedTransmissibilityResultName() { return "CombTrans"; }
|
||||
};
|
||||
|
||||
|
||||
@@ -727,6 +727,16 @@ size_t RimReservoirCellResultsStorage::storedResultsCount()
|
||||
return m_resultCacheMetaData.size();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimReservoirCellResultsStorage::createCombinedTransmissibilityResults()
|
||||
{
|
||||
if (!m_cellResults) return;
|
||||
|
||||
m_cellResults->createCombinedTransmissibilityResult();
|
||||
}
|
||||
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimReservoirCellResultsStorageEntryInfo, "ResultStorageEntryInfo");
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@ public:
|
||||
RifReaderInterface* readerInterface();
|
||||
|
||||
void loadOrComputeSOIL();
|
||||
void createCombinedTransmissibilityResults();
|
||||
void computeDepthRelatedResults();
|
||||
|
||||
size_t findOrLoadScalarResultForTimeStep(RimDefines::ResultCatType type, const QString& resultName, size_t timeStepIndex);
|
||||
|
||||
@@ -941,6 +941,7 @@ void RimReservoirView::loadDataAndUpdate()
|
||||
RimReservoirCellResultsStorage* results = currentGridCellResults();
|
||||
CVF_ASSERT(results);
|
||||
results->loadOrComputeSOIL();
|
||||
results->createCombinedTransmissibilityResults();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -196,7 +196,17 @@ void RimResultDefinition::loadResult()
|
||||
RimReservoirCellResultsStorage* gridCellResults = this->currentGridCellResults();
|
||||
if (gridCellResults)
|
||||
{
|
||||
gridCellResults->findOrLoadScalarResult(m_resultType(), m_resultVariable);
|
||||
if (m_resultType() == RimDefines::STATIC_NATIVE &&
|
||||
m_resultVariable().compare(RimDefines::combinedTransmissibilityResultName(), Qt::CaseInsensitive) == 0)
|
||||
{
|
||||
gridCellResults->findOrLoadScalarResult(m_resultType(), "TRANX");
|
||||
gridCellResults->findOrLoadScalarResult(m_resultType(), "TRANY");
|
||||
gridCellResults->findOrLoadScalarResult(m_resultType(), "TRANZ");
|
||||
}
|
||||
else
|
||||
{
|
||||
gridCellResults->findOrLoadScalarResult(m_resultType(), m_resultVariable);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user