Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Feb 12, 2025
1 parent c2fb12b commit ebaf132
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,8 @@ void RiaSummaryAddressAnalyzer::analyzeSingleAddress( const RifEclipseSummaryAdd

if ( address.category() == SummaryCategory::SUMMARY_WELL_CONNECTION )
{
auto wellNameAndCompletion = std::make_pair( wellName, address.blockAsString() );
m_wellConnections.insert( wellNameAndCompletion );
auto wellNameAndConnection = std::make_pair( wellName, address.connectionAsString() );
m_wellConnections.insert( wellNameAndConnection );
}
else if ( address.category() == SummaryCategory::SUMMARY_WELL_SEGMENT )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ QString RiaDefines::summaryWellGroup()
//--------------------------------------------------------------------------------------------------
QString RiaDefines::summaryWellSegment()
{
return "Well Segment";
return "Segment";
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RiaDefines::summaryConnection()
QString RiaDefines::summaryWellConnection()
{
return "Connection";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ QString summaryWell();
QString summaryWellCompletion();
QString summaryWellGroup();
QString summaryWellSegment();
QString summaryConnection();
QString summaryWellConnection();
QString summarySegment();
QString summaryBlock();
QString summaryLgrConnection();
Expand Down
4 changes: 2 additions & 2 deletions ApplicationLibCode/FileInterface/RifEclipseSummaryAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ std::string RifEclipseSummaryAddress::itemUiText() const
case SummaryCategory::SUMMARY_WELL_CONNECTION:
{
text += wellName();
text += ":" + blockAsString();
text += ":" + connectionAsString();
}
break;
case SummaryCategory::SUMMARY_WELL_LGR:
Expand All @@ -736,7 +736,7 @@ std::string RifEclipseSummaryAddress::itemUiText() const
text += ":";
text += wellName();
text += ":";
text += blockAsString();
text += connectionAsString();
}
break;
case SummaryCategory::SUMMARY_WELL_SEGMENT:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void caf::AppEnum<RifEclipseSummaryAddressDefines::SummaryCategory>::setUp()
addItem( RifAdr::SUMMARY_GROUP, "SUMMARY_WELL_GROUP", RiaDefines::summaryWellGroup() );
addItem( RifAdr::SUMMARY_WELL, "SUMMARY_WELL", RiaDefines::summaryWell() );
addItem( RifAdr::SUMMARY_WELL_COMPLETION, "SUMMARY_WELL_COMPLETION", RiaDefines::summaryWellCompletion() );
addItem( RifAdr::SUMMARY_WELL_CONNECTION, "SUMMARY_WELL_CONNECTION", RiaDefines::summaryConnection() );
addItem( RifAdr::SUMMARY_WELL_CONNECTION, "SUMMARY_WELL_CONNECTION", RiaDefines::summaryWellConnection() );
addItem( RifAdr::SUMMARY_WELL_CONNECTION_LGR, "SUMMARY_WELL_CONNECTION_LGR", RiaDefines::summaryLgrConnection() );
addItem( RifAdr::SUMMARY_WELL_LGR, "SUMMARY_WELL_LGR", RiaDefines::summaryLgrWell() );
addItem( RifAdr::SUMMARY_WELL_SEGMENT, "SUMMARY_SEGMENT", RiaDefines::summarySegment() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void caf::AppEnum<RimSummaryAddressCollection::CollectionContentType>::setUp()
addItem( CollectionContentType::AQUIFER, "AQUIFER", RiaDefines::summaryAquifer() );
addItem( CollectionContentType::NETWORK, "NETWORK", RiaDefines::summaryNetwork() );
addItem( CollectionContentType::REGION_2_REGION, "REGION_2_REGION", RiaDefines::summaryRegion2Region() );
addItem( CollectionContentType::WELL_CONNECTION, "WELL_CONNECTION", RiaDefines::summaryConnection() );
addItem( CollectionContentType::WELL_CONNECTION, "WELL_CONNECTION", RiaDefines::summaryWellConnection() );
addItem( CollectionContentType::WELL_COMPLETION, "WELL_COMPLETION", RiaDefines::summaryWellCompletion() );
addItem( CollectionContentType::WELL_LGR, "WELL_LGR", RiaDefines::summaryLgrWell() );
addItem( CollectionContentType::WELL_CONNECTION_LGR, "WELL_CONNECTION_LGR", RiaDefines::summaryLgrConnection() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void AppEnum<RimSummaryDataSourceStepping::SourceSteppingDimension>::setUp()
addItem( ssd::BLOCK, "BLOCK", RiaDefines::summaryBlock() );
addItem( ssd::AQUIFER, "AQUIFER", RiaDefines::summaryAquifer() );
addItem( ssd::WELL_SEGMENT, "WELL_SEGMENT", RiaDefines::summaryWellSegment() );
addItem( ssd::WELL_CONNECTION, "WELL_CONNECTION", RiaDefines::summaryConnection() );
addItem( ssd::WELL_CONNECTION, "WELL_CONNECTION", RiaDefines::summaryWellConnection() );
setDefault( ssd::VECTOR );
}
} // namespace caf
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ void RiuSummaryVectorSelectionUi::defineUiOrdering( QString uiConfigName, caf::P
else if ( sumCategory == SummaryCategory::SUMMARY_WELL_CONNECTION )
{
{
caf::PdmUiGroup* myGroup = uiOrdering.addNewGroup( RiaDefines::summaryConnection() + "s" );
caf::PdmUiGroup* myGroup = uiOrdering.addNewGroup( RiaDefines::summaryWellConnection() + "s" );
myGroup->add( m_identifierFieldsMap[SummaryCategory::SUMMARY_WELL_CONNECTION][0]->pdmField() );
myGroup->add( m_identifierFieldsMap[SummaryCategory::SUMMARY_WELL_CONNECTION][1]->pdmField() );
}
Expand Down

0 comments on commit ebaf132

Please sign in to comment.