mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
RFT plot. Fix list of wells (display well path name when possible)
This commit is contained in:
parent
5adc6a4d41
commit
cf069aaf5c
@ -1287,15 +1287,26 @@ void RimWellRftPlot::calculateValueOptionsForWells(QList<caf::PdmOptionItemInfo>
|
||||
if (proj != nullptr)
|
||||
{
|
||||
const std::vector<QString> simWellNames = proj->simulationWellNames();
|
||||
auto wellNames = std::set<QString>(simWellNames.begin(), simWellNames.end());
|
||||
std::set<QString> simWellsAssociatedWithWellPath;
|
||||
std::set<QString> wellNames;
|
||||
|
||||
// Observed wells
|
||||
for (const auto& oilField : proj->oilFields())
|
||||
for (RimWellPath* const wellPath : proj->allWellPaths())
|
||||
{
|
||||
auto wellPathColl = oilField->wellPathCollection();
|
||||
for (const auto& wellPath : wellPathColl->wellPaths)
|
||||
wellNames.insert(wellPath->name());
|
||||
|
||||
if (!wellPath->associatedSimulationWell().isEmpty())
|
||||
{
|
||||
wellNames.insert(wellPath->name());
|
||||
simWellsAssociatedWithWellPath.insert(wellPath->associatedSimulationWell());
|
||||
}
|
||||
}
|
||||
|
||||
// Sim wells not associated with well path
|
||||
for (const QString& simWellName : simWellNames)
|
||||
{
|
||||
if (simWellsAssociatedWithWellPath.count(simWellName) == 0)
|
||||
{
|
||||
wellNames.insert(simWellName);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user