Remove deprecated size_t overloads from RigActiveCellInfo

Migrate all callers to use type-safe ReservoirCellIndex and
ActiveCellIndex wrappers, then remove the deprecated isActive(size_t),
cellResultIndex(size_t), and setCellResultIndex(size_t, size_t) methods.
This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2026-03-31 12:32:05 +02:00
1 parent f9a081eb87
commit a0dbbf6cb1
63 files changed
+134 -141

No files matched your search

@@ -438,12 +438,12 @@ void RigEclipseCaseData::computeActiveCellIJKBBox()
if ( !m_mainGrid->isCellValid( i, j, k ) ) continue;
if ( m_activeCellInfo->isActive( idx ) )
if ( m_activeCellInfo->isActive( ReservoirCellIndex( idx ) ) )
{
matrixModelActiveBB.add( i, j, k );
}
if ( m_fractureActiveCellInfo->isActive( idx ) )
if ( m_fractureActiveCellInfo->isActive( ReservoirCellIndex( idx ) ) )
{
fractureModelActiveBB.add( i, j, k );
}
@@ -666,7 +666,7 @@ void RigEclipseCaseData::computeActiveCellsGeometryBoundingBoxSlow()
{
for ( size_t i = 0; i < m_mainGrid->cellCount(); i++ )
{
if ( activeInfos[acIdx]->isActive( i ) )
if ( activeInfos[acIdx]->isActive( ReservoirCellIndex( i ) ) )
{
std::array<cvf::Vec3d, 8> hexCorners = m_mainGrid->cellCornerVertices( i );
for ( const auto& corner : hexCorners )
@@ -756,7 +756,8 @@ void RigEclipseCaseData::computeActiveCellsGeometryBoundingBoxOptimized()
{
size_t globalCellIndex = localGrid->reservoirCellIndex( localCellIndex );
if ( globalCellIndex < activeInfos[acIdx]->reservoirCellCount() && activeInfos[acIdx]->isActive( globalCellIndex ) )
if ( globalCellIndex < activeInfos[acIdx]->reservoirCellCount() &&
activeInfos[acIdx]->isActive( ReservoirCellIndex( globalCellIndex ) ) )
{
std::array<cvf::Vec3d, 8> hexCorners = localGrid->cellCornerVertices( localCellIndex );
for ( const auto& corner : hexCorners )