mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
RFT: Add connection data as segment results
This commit is contained in:
@@ -285,3 +285,20 @@ std::vector<size_t> RifRftSegment::indicesForBranchIndex( int branchIndex, RiaDe
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<int> RifRftSegment::segmentNumbersForBranchIndex( int oneBasedBranchIndex,
|
||||
RiaDefines::RftBranchType branchType ) const
|
||||
{
|
||||
std::vector<int> v;
|
||||
|
||||
auto indices = indicesForBranchIndex( oneBasedBranchIndex, branchType );
|
||||
for ( auto index : indices )
|
||||
{
|
||||
v.push_back( m_topology[index].segNo() );
|
||||
}
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user