mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-09 23:53:04 -06:00
Bugfix: Creation of difference summary addresses
Difference summary addresses were also added for history summary addresses.
This commit is contained in:
parent
77b2b71282
commit
ee4311ca10
@ -557,19 +557,7 @@ void RifReaderEclipseSummary::buildMetaData()
|
||||
|
||||
{
|
||||
std::string s = adr.quantityName();
|
||||
if ( RiaStdStringTools::endsWith( s, historyIdentifier() ) )
|
||||
{
|
||||
RifEclipseSummaryAddress candidate = adr;
|
||||
|
||||
std::string quantityNoHistory = s.substr( 0, s.size() - 1 );
|
||||
candidate.setQuantityName( quantityNoHistory );
|
||||
if ( m_allResultAddresses.count( candidate ) )
|
||||
{
|
||||
adrWithHistory = adr;
|
||||
adrWithoutHistory = candidate;
|
||||
}
|
||||
}
|
||||
else
|
||||
if ( !RiaStdStringTools::endsWith( s, historyIdentifier() ) )
|
||||
{
|
||||
RifEclipseSummaryAddress candidate = adr;
|
||||
candidate.setQuantityName( s + historyIdentifier() );
|
||||
|
Loading…
Reference in New Issue
Block a user