mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
RFT plot. Mark wells that have an observed well path in wells list
This commit is contained in:
parent
8a35a53935
commit
609963bb73
@ -818,12 +818,12 @@ void RimWellRftPlot::calculateValueOptionsForWells(QList<caf::PdmOptionItemInfo>
|
|||||||
{
|
{
|
||||||
const std::vector<QString> simWellNames = proj->simulationWellNames();
|
const std::vector<QString> simWellNames = proj->simulationWellNames();
|
||||||
std::set<QString> simWellsAssociatedWithWellPath;
|
std::set<QString> simWellsAssociatedWithWellPath;
|
||||||
std::set<QString> wellNames;
|
std::set<std::pair<QString /*uitext*/, QString /*value*/>> wellNames;
|
||||||
|
|
||||||
// Observed wells
|
// Observed wells
|
||||||
for (RimWellPath* const wellPath : proj->allWellPaths())
|
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())
|
if (!wellPath->associatedSimulationWellName().isEmpty())
|
||||||
{
|
{
|
||||||
@ -836,13 +836,13 @@ void RimWellRftPlot::calculateValueOptionsForWells(QList<caf::PdmOptionItemInfo>
|
|||||||
{
|
{
|
||||||
if (simWellsAssociatedWithWellPath.count(simWellName) == 0)
|
if (simWellsAssociatedWithWellPath.count(simWellName) == 0)
|
||||||
{
|
{
|
||||||
wellNames.insert(simWellName);
|
wellNames.insert(std::make_pair(simWellName, simWellName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto& wellName : wellNames)
|
for (const auto& wellName : wellNames)
|
||||||
{
|
{
|
||||||
options.push_back(caf::PdmOptionItemInfo(wellName, wellName));
|
options.push_back(caf::PdmOptionItemInfo(wellName.first, wellName.second));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user