RFT: Add connection data as segment results

This commit is contained in:
Magne Sjaastad
2022-08-22 10:56:33 +02:00
parent 418c4df7b3
commit b6973a3644
3 changed files with 56 additions and 12 deletions

View File

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