mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7727 Well Path : Simplify access to all well paths
This commit is contained in:
@@ -144,23 +144,19 @@ void RicWellPathExportCompletionDataFeatureImpl::exportCompletions( const std::v
|
||||
{
|
||||
caf::ProgressInfo progress( topLevelWellPaths.size(), "Extracting Completion Data For Well Paths" );
|
||||
|
||||
for ( RimWellPath* wellPath : topLevelWellPaths )
|
||||
for ( RimWellPath* topLevelWellPath : topLevelWellPaths )
|
||||
{
|
||||
std::vector<RimWellPath*> allWellPathLaterals;
|
||||
if ( wellPath->unitSystem() == exportSettings.caseToApply->eclipseCaseData()->unitsType() )
|
||||
if ( topLevelWellPath->unitSystem() == exportSettings.caseToApply->eclipseCaseData()->unitsType() )
|
||||
{
|
||||
auto tieInWells = wellPath->wellPathLateralsRecursively();
|
||||
for ( auto w : tieInWells )
|
||||
{
|
||||
allWellPathLaterals.push_back( w );
|
||||
}
|
||||
allWellPathLaterals = topLevelWellPath->wellPathLateralsRecursively();
|
||||
}
|
||||
else
|
||||
{
|
||||
int caseId = exportSettings.caseToApply->caseId();
|
||||
QString format = QString(
|
||||
"Unit systems for well path \"%1\" must match unit system of chosen eclipse case \"%2\"" );
|
||||
QString errMsg = format.arg( wellPath->name() ).arg( caseId );
|
||||
QString errMsg = format.arg( topLevelWellPath->name() ).arg( caseId );
|
||||
RiaLogging::error( errMsg );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user