mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-10 08:03:05 -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();
|
std::string s = adr.quantityName();
|
||||||
if ( RiaStdStringTools::endsWith( s, historyIdentifier() ) )
|
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
|
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress candidate = adr;
|
RifEclipseSummaryAddress candidate = adr;
|
||||||
candidate.setQuantityName( s + historyIdentifier() );
|
candidate.setQuantityName( s + historyIdentifier() );
|
||||||
|
Loading…
Reference in New Issue
Block a user