Bugfix: Creation of difference summary addresses

Difference summary addresses were also added for history summary addresses.
This commit is contained in:
Ruben Thoms 2020-10-06 11:05:30 +02:00 committed by Magne Sjaastad
parent 77b2b71282
commit ee4311ca10

View File

@ -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() );