mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user