mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7727 Performance : Reduce amount of work
Use objectsWithReferringPtrFields to find tieIn wells Avoid using descendantsOfType
This commit is contained in:
@@ -113,16 +113,18 @@ void RicWellPathExportCompletionDataFeature::prepareExportSettingsAndExportCompl
|
||||
|
||||
std::vector<RimWellPath*> allLaterals;
|
||||
{
|
||||
std::set<RimWellPath*> laterals;
|
||||
std::set<RimWellPath*> lateralSet;
|
||||
|
||||
for ( auto t : topLevelWells )
|
||||
{
|
||||
auto laterals = t->wellPathLateralsRecursively();
|
||||
auto laterals = t->allWellPathLaterals();
|
||||
for ( auto l : laterals )
|
||||
{
|
||||
allLaterals.push_back( l );
|
||||
lateralSet.insert( l );
|
||||
}
|
||||
}
|
||||
|
||||
allLaterals.assign( lateralSet.begin(), lateralSet.end() );
|
||||
}
|
||||
|
||||
for ( auto w : allLaterals )
|
||||
|
||||
Reference in New Issue
Block a user