Avoid copy of eclipse results arrays in RimReservoirCellResultsStorage::isDataPresent

This commit is contained in:
Jacob Støren
2017-06-20 16:29:56 +02:00
parent 5a466db9af
commit 47869b4728

View File

@@ -1543,7 +1543,7 @@ bool RimReservoirCellResultsStorage::isDataPresent(size_t scalarResultIndex) con
return false;
}
const std::vector< std::vector<double> > data = m_cellResults->cellScalarResults(scalarResultIndex);
const std::vector< std::vector<double> >& data = m_cellResults->cellScalarResults(scalarResultIndex);
for (size_t tsIdx = 0; tsIdx < data.size(); ++tsIdx)
{