mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1816 Move functions from SummaryReaderInterface to EclipseSummaryReader
This commit is contained in:
@@ -49,22 +49,6 @@ std::vector<QDateTime> RifSummaryReaderInterface::fromTimeT(const std::vector<ti
|
||||
return a;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
int RifSummaryReaderInterface::indexFromAddress(const RifEclipseSummaryAddress& resultAddress)
|
||||
{
|
||||
this->buildMetaData();
|
||||
|
||||
auto it = m_resultAddressToErtNodeIdx.find(resultAddress);
|
||||
if (it != m_resultAddressToErtNodeIdx.end())
|
||||
{
|
||||
return it->second;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -72,7 +56,13 @@ bool RifSummaryReaderInterface::hasAddress(const RifEclipseSummaryAddress& resul
|
||||
{
|
||||
this->buildMetaData();
|
||||
|
||||
auto it = m_resultAddressToErtNodeIdx.find(resultAddress);
|
||||
for (RifEclipseSummaryAddress summaryAddress : m_allResultAddresses)
|
||||
{
|
||||
if (summaryAddress == resultAddress)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return (it != m_resultAddressToErtNodeIdx.end());
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user