From 22aedaacf58543b07f4459ca9ecefa49dd573821 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Mon, 2 Dec 2024 10:18:29 +0100 Subject: [PATCH] Update to changed api. --- .../Well/RigWellTargetCandidatesGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationLibCode/ReservoirDataModel/Well/RigWellTargetCandidatesGenerator.cpp b/ApplicationLibCode/ReservoirDataModel/Well/RigWellTargetCandidatesGenerator.cpp index b0173a0055..16c98f1312 100644 --- a/ApplicationLibCode/ReservoirDataModel/Well/RigWellTargetCandidatesGenerator.cpp +++ b/ApplicationLibCode/ReservoirDataModel/Well/RigWellTargetCandidatesGenerator.cpp @@ -640,7 +640,7 @@ void RigWellTargetCandidatesGenerator::generateEnsembleCandidates( RimEclipseCas for ( size_t targetCellIdx = 0; targetCellIdx < targetNumReservoirCells; targetCellIdx++ ) { - const RigCell& nativeCell = targetCase.mainGrid()->globalCellArray()[targetCellIdx]; + const RigCell& nativeCell = targetCase.mainGrid()->cell( targetCellIdx ); cvf::Vec3d cellCenter = nativeCell.center(); size_t targetResultIndex = targetActiveCellInfo->cellResultIndex( targetCellIdx );