mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2264 PLT plot. Filter wells list based on well geometry and production data
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user