mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
#13581 Missing curves for _DIFF vectors
In ensembles, the m_differenceAddresses was initialized only for one of the realizations causing the statistics to fail. Replace with direct string compare with "_DIFF"
This commit is contained in:
@@ -179,7 +179,7 @@ std::pair<bool, std::vector<double>> RifReaderEclipseSummary::values( const RifE
|
||||
return { true, values };
|
||||
}
|
||||
|
||||
if ( m_differenceAddresses.count( resultAddress ) )
|
||||
if ( resultAddress.vectorName().contains( RifEclipseSummaryAddressDefines::differenceIdentifier() ) )
|
||||
{
|
||||
const std::string& quantityName = resultAddress.vectorName();
|
||||
auto historyQuantity = quantityName.substr( 0, quantityName.size() - RifEclipseSummaryAddressDefines::differenceIdentifier().size() ) +
|
||||
@@ -204,8 +204,8 @@ std::pair<bool, std::vector<double>> RifReaderEclipseSummary::values( const RifE
|
||||
{
|
||||
double diff = nativeValues[i] - historyValues[i];
|
||||
values.push_back( diff );
|
||||
m_valuesCache->insertValues( resultAddress, values );
|
||||
}
|
||||
m_valuesCache->insertValues( resultAddress, values );
|
||||
|
||||
return { true, values };
|
||||
}
|
||||
@@ -278,7 +278,6 @@ void RifReaderEclipseSummary::createAndSetAddresses()
|
||||
candidate.setVectorName( s );
|
||||
|
||||
m_allResultAddresses.insert( candidate );
|
||||
m_differenceAddresses.insert( candidate );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,6 @@ private:
|
||||
|
||||
private:
|
||||
std::unique_ptr<RifSummaryReaderInterface> m_summaryReader;
|
||||
std::set<RifEclipseSummaryAddress> m_differenceAddresses;
|
||||
|
||||
RifEnsembleImportConfig m_ensembleImportState;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user