Add Empty Predicate to WellSegments Collection
Will be useful when deciding whether or not to collect segment information in the RFT file.
This commit is contained in:
parent
c7dc6de3b3
commit
56a53d4bde
@ -74,6 +74,7 @@ namespace Opm {
|
||||
static WellSegments serializationTestObject();
|
||||
|
||||
std::size_t size() const;
|
||||
bool empty() const;
|
||||
double depthTopSegment() const;
|
||||
double lengthTopSegment() const;
|
||||
double volumeTopSegment() const;
|
||||
|
@ -73,6 +73,10 @@ namespace Opm {
|
||||
return m_segments.size();
|
||||
}
|
||||
|
||||
bool WellSegments::empty() const {
|
||||
return this->m_segments.empty();
|
||||
}
|
||||
|
||||
const Segment& WellSegments::topSegment() const {
|
||||
return this->m_segments[0];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user