From 609963bb73c5b2f4f0393a77d8a0afc3e57e4348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Jensen?= Date: Wed, 6 Dec 2017 15:45:19 +0100 Subject: [PATCH] RFT plot. Mark wells that have an observed well path in wells list --- ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp b/ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp index 0a6f45dfd2..337a111f6e 100644 --- a/ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp +++ b/ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp @@ -818,12 +818,12 @@ void RimWellRftPlot::calculateValueOptionsForWells(QList { const std::vector simWellNames = proj->simulationWellNames(); std::set simWellsAssociatedWithWellPath; - std::set wellNames; + std::set> wellNames; // Observed wells for (RimWellPath* const wellPath : proj->allWellPaths()) { - wellNames.insert(wellPath->name()); + wellNames.insert(std::make_pair(wellPath->name() + " (Well Path)", wellPath->name())); if (!wellPath->associatedSimulationWellName().isEmpty()) { @@ -836,13 +836,13 @@ void RimWellRftPlot::calculateValueOptionsForWells(QList { if (simWellsAssociatedWithWellPath.count(simWellName) == 0) { - wellNames.insert(simWellName); + wellNames.insert(std::make_pair(simWellName, simWellName)); } } for (const auto& wellName : wellNames) { - options.push_back(caf::PdmOptionItemInfo(wellName, wellName)); + options.push_back(caf::PdmOptionItemInfo(wellName.first, wellName.second)); } }