mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Observed Data : Improve performance when accessing curve values
This commit is contained in:
parent
0502b95d86
commit
ea87c84d8c
@ -85,9 +85,14 @@ bool RifColumnBasedUserData::values(const RifEclipseSummaryAddress& resultAddres
|
|||||||
const ColumnInfo* ci = m_parser->columnInfo(tableColIndices.first, tableColIndices.second);
|
const ColumnInfo* ci = m_parser->columnInfo(tableColIndices.first, tableColIndices.second);
|
||||||
if (!ci) return false;
|
if (!ci) return false;
|
||||||
|
|
||||||
for (const auto& v : ci->values)
|
if (!ci->values.empty())
|
||||||
{
|
{
|
||||||
values->push_back(v);
|
values->resize(ci->values.size());
|
||||||
|
|
||||||
|
for (const auto& v : ci->values)
|
||||||
|
{
|
||||||
|
values->push_back(v);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user