mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-02 20:30:46 -06:00
Assign branch number to main branches before completions
This commit is contained in:
1 parent
a72f98a633
commit
88cf84a23a
1 file changed
+6
-7
+6
-7
@@ -1789,6 +1789,12 @@ void RicWellPathExportMswCompletionsImpl::assignBranchNumbersToBranch( const Rim
|
||||
{
|
||||
branch->setBranchNumber( *branchNumber );
|
||||
|
||||
for ( auto childBranch : branch->branches() )
|
||||
{
|
||||
( *branchNumber )++;
|
||||
assignBranchNumbersToBranch( eclipseCase, exportInfo, childBranch, branchNumber );
|
||||
}
|
||||
|
||||
// Assign perforations first to ensure the same branch number as the segment
|
||||
for ( auto segment : branch->segments() )
|
||||
{
|
||||
@@ -1800,13 +1806,6 @@ void RicWellPathExportMswCompletionsImpl::assignBranchNumbersToBranch( const Rim
|
||||
{
|
||||
assignBranchNumbersToOtherCompletions( eclipseCase, segment, branchNumber );
|
||||
}
|
||||
|
||||
( *branchNumber )++;
|
||||
|
||||
for ( auto childBranch : branch->branches() )
|
||||
{
|
||||
assignBranchNumbersToBranch( eclipseCase, exportInfo, childBranch, branchNumber );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user