mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
Observed Data : Improve performance when accessing curve values
This commit is contained in:
1 parent
0502b95d86
commit
ea87c84d8c
1 file changed
+5
@@ -85,11 +85,16 @@ 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;
|
||||||
|
|
||||||
|
if (!ci->values.empty())
|
||||||
|
{
|
||||||
|
values->resize(ci->values.size());
|
||||||
|
|
||||||
for (const auto& v : ci->values)
|
for (const auto& v : ci->values)
|
||||||
{
|
{
|
||||||
values->push_back(v);
|
values->push_back(v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user