#3468 Add new valve completions to perforation intervals.

This commit is contained in:
Gaute Lindkvist
2018-10-10 11:10:56 +02:00
parent ce2430ac2d
commit cfbe6a1a24
14 changed files with 453 additions and 14 deletions

View File

@@ -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;
}