#3686 Completion Export : Use map based on size_t instead of RigCompletionDataGridCell

Using RigCompletionDataGridCell as key in a map causes cells with identical local IJK to be treated as same global cell. Use reservoir grid cell index (size_t) as key to be able to handle cells correctly.
This commit is contained in:
Magne Sjaastad
2018-11-14 11:40:23 +01:00
parent 1121abbfac
commit 4117e266ed
9 changed files with 62 additions and 43 deletions

View File

@@ -729,8 +729,7 @@ void RiuViewerCommands::handlePickAction(int winPosX, int winPosY, Qt::KeyboardM
const auto& multipleCompletions = connectionFactors->multipleCompletionsPerEclipseCell(wellConnectionSourceInfo->wellPath(), timeStep);
RigCompletionDataGridCell completionGridCell(globalCellIndex, eclipseCase->eclipseCaseData()->mainGrid());
auto completionDataIt = multipleCompletions.find(completionGridCell);
auto completionDataIt = multipleCompletions.find(globalCellIndex);
if (completionDataIt != multipleCompletions.end())
{
completionsForOneCell = completionDataIt->second;