#2264 PLT plot. Filter wells list based on well geometry and production data

This commit is contained in:
Bjørn Erik Jensen
2017-12-14 11:22:44 +01:00
parent 8efcccf5c4
commit f84a535511
4 changed files with 18 additions and 10 deletions

View File

@@ -1073,17 +1073,13 @@ void RimWellPltPlot::calculateValueOptionsForWells(QList<caf::PdmOptionItemInfo>
if (proj != nullptr)
{
std::set<QString> wellNames;
// Observed wells
for (const RimWellPath* const wellPath : proj->allWellPaths())
{
wellNames.insert(wellPath->name());
}
const QString wellName = wellPath->name();
for (const auto& wellName : wellNames)
{
options.push_back(caf::PdmOptionItemInfo(wellName, wellName));
if(wellPath->wellPathGeometry() || RimWellPlotTools::hasFlowData(wellPath))
options.push_back(caf::PdmOptionItemInfo(wellName, wellName));
}
}