Summary connections and completions (#12156)

* Add category WELL_CONNECTION
* Throw exception if category string is invalid
* Make it possible to step connections
* Add definition of completion vectors
* Use WELL_CONNECTION for CPRL
* Convert "WGPRL__2:MY-WELL1-A5" to "WGPRL:MY-WELL1-A5:2"
Use the syntax for well completions in opm-common
* More tests for different variants of summary texts
This commit is contained in:
Magne Sjaastad
2025-02-13 08:31:53 +01:00
committed by GitHub
parent ad310714c2
commit 865fbf0cba
42 changed files with 1410 additions and 729 deletions

View File

@@ -137,8 +137,19 @@ bool RimDataSourceSteppingTools::updateAddressIfMatching( const QVariant&
return true;
}
}
else if ( category == RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_WELL_COMPLETION )
{
int oldInt = oldValue.toInt();
int newInt = newValue.toInt();
if ( adr.wellCompletionNumber() == oldInt )
{
adr.setWellCompletionNumber( newInt );
return true;
}
}
else if ( category == RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_BLOCK ||
category == RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_WELL_COMPLETION )
category == RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_WELL_CONNECTION )
{
std::string oldString = oldValue.toString().toStdString();
std::string newString = newValue.toString().toStdString();