mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user