mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3958 Refactoreing: Rename
This commit is contained in:
parent
8ee1d1491f
commit
09011862cd
@ -691,7 +691,7 @@ void RivFaultPartMgr::updateNNCColors(size_t timeStepIndex, RimEclipseCellColors
|
||||
|
||||
if (cellResultColors)
|
||||
{
|
||||
RigEclipseResultAddress scalarSetIndex = cellResultColors->scalarResultIndex();
|
||||
RigEclipseResultAddress scalarSetIndex = cellResultColors->eclipseResultAddress();
|
||||
|
||||
if (m_grid->mainGrid()->nncData()->hasScalarValues(scalarSetIndex.scalarResultIndex))
|
||||
{
|
||||
@ -702,7 +702,7 @@ void RivFaultPartMgr::updateNNCColors(size_t timeStepIndex, RimEclipseCellColors
|
||||
|
||||
if (showNncsWithScalarMappedColor)
|
||||
{
|
||||
RigEclipseResultAddress scalarSetIndex = cellResultColors->scalarResultIndex();
|
||||
RigEclipseResultAddress scalarSetIndex = cellResultColors->eclipseResultAddress();
|
||||
RiaDefines::ResultCatType resultType = cellResultColors->resultType();
|
||||
|
||||
const cvf::ScalarMapper* mapper = cellResultColors->legendConfig()->scalarMapper();
|
||||
|
@ -162,11 +162,11 @@ void RivReservoirFaultsPartMgr::appendPartsToModel(cvf::ModelBasicList* model)
|
||||
RigEclipseResultAddress scalarResultIndex;
|
||||
if (faultResultColors->showCustomFaultResult())
|
||||
{
|
||||
scalarResultIndex = faultResultColors->customFaultResult()->scalarResultIndex();
|
||||
scalarResultIndex = faultResultColors->customFaultResult()->eclipseResultAddress();
|
||||
}
|
||||
else
|
||||
{
|
||||
scalarResultIndex = cellResultColors->scalarResultIndex();
|
||||
scalarResultIndex = cellResultColors->eclipseResultAddress();
|
||||
}
|
||||
|
||||
RigMainGrid* mainGrid = m_reservoirView->mainGrid();
|
||||
|
@ -337,7 +337,7 @@ Rim3dOverlayInfoConfig::HistogramData Rim3dOverlayInfoConfig::histogramData(RimE
|
||||
|
||||
if (isResultsInfoRelevant)
|
||||
{
|
||||
RigEclipseResultAddress eclResAddr = eclipseView->cellResult()->scalarResultIndex();
|
||||
RigEclipseResultAddress eclResAddr = eclipseView->cellResult()->eclipseResultAddress();
|
||||
|
||||
if (eclResAddr.isValid())
|
||||
{
|
||||
@ -1095,7 +1095,7 @@ void Rim3dOverlayInfoConfig::updateVisCellStatsIfNeeded()
|
||||
}
|
||||
else
|
||||
{
|
||||
RigEclipseResultAddress scalarIndex = eclipseView->cellResult()->scalarResultIndex();
|
||||
RigEclipseResultAddress scalarIndex = eclipseView->cellResult()->eclipseResultAddress();
|
||||
calc = new RigEclipseNativeVisibleCellsStatCalc(eclipseView->currentGridCellResults(),
|
||||
scalarIndex,
|
||||
eclipseView->currentTotalCellVisibility().p());
|
||||
|
@ -105,7 +105,7 @@ void RimCellEdgeColors::loadResult()
|
||||
{
|
||||
m_singleVarEdgeResultColors->loadResult();;
|
||||
|
||||
RigEclipseResultAddress resultindex = m_singleVarEdgeResultColors->scalarResultIndex();
|
||||
RigEclipseResultAddress resultindex = m_singleVarEdgeResultColors->eclipseResultAddress();
|
||||
for (int cubeFaceIdx = 0; cubeFaceIdx < 6; ++cubeFaceIdx)
|
||||
{
|
||||
m_resultNameToIndexPairs[cubeFaceIdx] = std::make_pair(m_singleVarEdgeResultColors->resultVariable(), resultindex);
|
||||
|
@ -361,15 +361,15 @@ void RimEclipseCellColors::updateLegendData(size_t currentTimeStep,
|
||||
double globalMin, globalMax;
|
||||
double globalPosClosestToZero, globalNegClosestToZero;
|
||||
|
||||
cellResultsData->minMaxCellScalarValues(this->scalarResultIndex(), globalMin, globalMax);
|
||||
cellResultsData->posNegClosestToZero(this->scalarResultIndex(), globalPosClosestToZero, globalNegClosestToZero);
|
||||
cellResultsData->minMaxCellScalarValues(this->eclipseResultAddress(), globalMin, globalMax);
|
||||
cellResultsData->posNegClosestToZero(this->eclipseResultAddress(), globalPosClosestToZero, globalNegClosestToZero);
|
||||
|
||||
double localMin, localMax;
|
||||
double localPosClosestToZero, localNegClosestToZero;
|
||||
if ( this->hasDynamicResult() )
|
||||
{
|
||||
cellResultsData->minMaxCellScalarValues(this->scalarResultIndex(), currentTimeStep, localMin, localMax);
|
||||
cellResultsData->posNegClosestToZero(this->scalarResultIndex(), currentTimeStep, localPosClosestToZero, localNegClosestToZero);
|
||||
cellResultsData->minMaxCellScalarValues(this->eclipseResultAddress(), currentTimeStep, localMin, localMax);
|
||||
cellResultsData->posNegClosestToZero(this->eclipseResultAddress(), currentTimeStep, localPosClosestToZero, localNegClosestToZero);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -395,7 +395,7 @@ void RimEclipseCellColors::updateLegendData(size_t currentTimeStep,
|
||||
}
|
||||
else if ( this->resultType() == RiaDefines::DYNAMIC_NATIVE && this->resultVariable() == RiaDefines::completionTypeResultName() )
|
||||
{
|
||||
const std::vector<int>& visibleCategories = cellResultsData->uniqueCellScalarValues(this->scalarResultIndex());
|
||||
const std::vector<int>& visibleCategories = cellResultsData->uniqueCellScalarValues(this->eclipseResultAddress());
|
||||
|
||||
std::vector<RiaDefines::WellPathComponentType> supportedCompletionTypes =
|
||||
{ RiaDefines::WELL_PATH, RiaDefines::FISHBONES, RiaDefines::PERFORATION_INTERVAL, RiaDefines::FRACTURE };
|
||||
@ -416,7 +416,7 @@ void RimEclipseCellColors::updateLegendData(size_t currentTimeStep,
|
||||
}
|
||||
else
|
||||
{
|
||||
legendConfig->setIntegerCategories(cellResultsData->uniqueCellScalarValues(this->scalarResultIndex()));
|
||||
legendConfig->setIntegerCategories(cellResultsData->uniqueCellScalarValues(this->eclipseResultAddress()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -324,7 +324,7 @@ std::vector<double> RimEclipseContourMapProjection::retrieveParameterWeights()
|
||||
std::vector<double> weights;
|
||||
if (m_weightByParameter())
|
||||
{
|
||||
RigEclipseResultAddress gridScalarResultIdx = m_weightingResult->scalarResultIndex();
|
||||
RigEclipseResultAddress gridScalarResultIdx = m_weightingResult->eclipseResultAddress();
|
||||
if (gridScalarResultIdx.isValid())
|
||||
{
|
||||
m_weightingResult->loadResult();
|
||||
|
@ -372,7 +372,7 @@ void RimEclipsePropertyFilter::computeResultValueRange()
|
||||
}
|
||||
else
|
||||
{
|
||||
RigEclipseResultAddress scalarIndex = resultDefinition->scalarResultIndex();
|
||||
RigEclipseResultAddress scalarIndex = resultDefinition->eclipseResultAddress();
|
||||
if ( scalarIndex.isValid() )
|
||||
{
|
||||
RigCaseCellResultsData* results = resultDefinition->currentGridCellResults();
|
||||
|
@ -625,7 +625,7 @@ QList<caf::PdmOptionItemInfo> RimEclipseResultDefinition::calculateValueOptions(
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigEclipseResultAddress RimEclipseResultDefinition::scalarResultIndex() const
|
||||
RigEclipseResultAddress RimEclipseResultDefinition::eclipseResultAddress() const
|
||||
{
|
||||
size_t gridScalarResultIndex = cvf::UNDEFINED_SIZE_T;
|
||||
|
||||
@ -786,7 +786,7 @@ bool RimEclipseResultDefinition::hasStaticResult() const
|
||||
if (isFlowDiagOrInjectionFlooding()) return false;
|
||||
|
||||
const RigCaseCellResultsData* gridCellResults = this->currentGridCellResults();
|
||||
RigEclipseResultAddress gridScalarResultIndex = this->scalarResultIndex();
|
||||
RigEclipseResultAddress gridScalarResultIndex = this->eclipseResultAddress();
|
||||
|
||||
if (hasResult() && gridCellResults->timeStepCount(gridScalarResultIndex) == 1 )
|
||||
{
|
||||
@ -845,7 +845,7 @@ bool RimEclipseResultDefinition::hasDynamicResult() const
|
||||
if (this->currentGridCellResults())
|
||||
{
|
||||
const RigCaseCellResultsData* gridCellResults = this->currentGridCellResults();
|
||||
RigEclipseResultAddress gridScalarResultIndex = this->scalarResultIndex();
|
||||
RigEclipseResultAddress gridScalarResultIndex = this->eclipseResultAddress();
|
||||
if (gridCellResults->timeStepCount(gridScalarResultIndex) > 1 )
|
||||
{
|
||||
return true;
|
||||
|
@ -94,7 +94,7 @@ public:
|
||||
QString resultVariableUiShortName() const;
|
||||
|
||||
void loadResult();
|
||||
RigEclipseResultAddress scalarResultIndex() const;
|
||||
RigEclipseResultAddress eclipseResultAddress() const;
|
||||
bool hasStaticResult() const;
|
||||
bool hasDynamicResult() const;
|
||||
bool hasResult() const;
|
||||
|
@ -1152,7 +1152,7 @@ void RimEclipseView::updateLegends()
|
||||
{
|
||||
if (cellEdgeResult()->singleVarEdgeResultColors()->resultType() != RiaDefines::FORMATION_NAMES)
|
||||
{
|
||||
cellEdgeResult()->legendConfig()->setIntegerCategories(results->uniqueCellScalarValues(cellEdgeResult()->singleVarEdgeResultColors()->scalarResultIndex()));
|
||||
cellEdgeResult()->legendConfig()->setIntegerCategories(results->uniqueCellScalarValues(cellEdgeResult()->singleVarEdgeResultColors()->eclipseResultAddress()));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -424,19 +424,19 @@ QString RiuResultTextBuilder::nncResultText()
|
||||
|
||||
if (m_reservoirView->currentFaultResultColors())
|
||||
{
|
||||
RigEclipseResultAddress scalarResultIdx = m_reservoirView->currentFaultResultColors()->scalarResultIndex();
|
||||
RigEclipseResultAddress eclipseResultAddress = m_reservoirView->currentFaultResultColors()->eclipseResultAddress();
|
||||
RiaDefines::ResultCatType resultType = m_reservoirView->currentFaultResultColors()->resultType();
|
||||
const std::vector<double>* nncValues = nullptr;
|
||||
if (resultType == RiaDefines::STATIC_NATIVE)
|
||||
{
|
||||
nncValues = nncData->staticConnectionScalarResult(scalarResultIdx.scalarResultIndex);
|
||||
nncValues = nncData->staticConnectionScalarResult(eclipseResultAddress.scalarResultIndex);
|
||||
}
|
||||
else if (resultType == RiaDefines::DYNAMIC_NATIVE)
|
||||
{
|
||||
if (m_reservoirView.notNull() && m_reservoirView->eclipseCase())
|
||||
{
|
||||
size_t nativeTimeStep = m_reservoirView->eclipseCase()->uiToNativeTimeStepIndex(m_timeStepIndex);
|
||||
nncValues = nncData->dynamicConnectionScalarResult(scalarResultIdx.scalarResultIndex, nativeTimeStep);
|
||||
nncValues = nncData->dynamicConnectionScalarResult(eclipseResultAddress.scalarResultIndex, nativeTimeStep);
|
||||
}
|
||||
}
|
||||
if (nncValues && (m_nncIndex < nncValues->size()))
|
||||
|
Loading…
Reference in New Issue
Block a user