mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Observed Data : Improve performance when accessing curve values
This commit is contained in:
1 parent
0502b95d86
commit
ea87c84d8c
1 file changed
+7
-2
@@ -85,9 +85,14 @@ bool RifColumnBasedUserData::values(const RifEclipseSummaryAddress& resultAddres
|
||||
const ColumnInfo* ci = m_parser->columnInfo(tableColIndices.first, tableColIndices.second);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user