mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#3958 Refactoring: Removed result index from NNC data
This commit is contained in:
@@ -691,9 +691,9 @@ void RivFaultPartMgr::updateNNCColors(size_t timeStepIndex, RimEclipseCellColors
|
||||
|
||||
if (cellResultColors)
|
||||
{
|
||||
RigEclipseResultAddress scalarSetIndex = cellResultColors->eclipseResultAddress();
|
||||
RigEclipseResultAddress eclResAddr = cellResultColors->eclipseResultAddress();
|
||||
|
||||
if (m_grid->mainGrid()->nncData()->hasScalarValues(scalarSetIndex.scalarResultIndex))
|
||||
if (m_grid->mainGrid()->nncData()->hasScalarValues(eclResAddr))
|
||||
{
|
||||
showNncsWithScalarMappedColor = true;
|
||||
}
|
||||
@@ -702,8 +702,8 @@ void RivFaultPartMgr::updateNNCColors(size_t timeStepIndex, RimEclipseCellColors
|
||||
|
||||
if (showNncsWithScalarMappedColor)
|
||||
{
|
||||
RigEclipseResultAddress scalarSetIndex = cellResultColors->eclipseResultAddress();
|
||||
RiaDefines::ResultCatType resultType = cellResultColors->resultType();
|
||||
RigEclipseResultAddress eclResAddr = cellResultColors->eclipseResultAddress();
|
||||
RiaDefines::ResultCatType resultType = cellResultColors->resultType();
|
||||
|
||||
const cvf::ScalarMapper* mapper = cellResultColors->legendConfig()->scalarMapper();
|
||||
|
||||
@@ -714,7 +714,7 @@ void RivFaultPartMgr::updateNNCColors(size_t timeStepIndex, RimEclipseCellColors
|
||||
{
|
||||
size_t nativeTimeStepIndex = eclipseCase->uiToNativeTimeStepIndex(timeStepIndex);
|
||||
m_NNCGenerator->textureCoordinates(
|
||||
m_NNCTextureCoords.p(), mapper, resultType, scalarSetIndex.scalarResultIndex, nativeTimeStepIndex);
|
||||
m_NNCTextureCoords.p(), mapper, resultType, eclResAddr, nativeTimeStepIndex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user