mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3468 Add new valve completions to perforation intervals.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "RimWellPathFractureCollection.h"
|
||||
#include "RimWellPathFracture.h"
|
||||
#include "RimWellPathComponentInterface.h"
|
||||
#include "RimWellPathValve.h"
|
||||
|
||||
#include "cvfAssert.h"
|
||||
|
||||
@@ -169,6 +170,16 @@ RimWellPathFractureCollection* RimWellPathCompletions::fractureCollection() cons
|
||||
return m_fractureCollection;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimWellPathValve*> RimWellPathCompletions::valves() const
|
||||
{
|
||||
std::vector<RimWellPathValve*> allValves;
|
||||
this->descendantsIncludingThisOfType(allValves);
|
||||
return allValves;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -189,6 +200,12 @@ std::vector<const RimWellPathComponentInterface*> RimWellPathCompletions::allCom
|
||||
completions.push_back(perforation);
|
||||
}
|
||||
|
||||
std::vector<RimWellPathValve*> allValves = valves();
|
||||
for (const RimWellPathValve* valve : allValves)
|
||||
{
|
||||
completions.push_back(valve);
|
||||
}
|
||||
|
||||
return completions;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user