mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 09:22:13 -05: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:
1 parent
1121abbfac
commit
4117e266ed
9 files changed
+62
-43
No files matched your search
@@ -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