mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
#3269 Compdat Export Performance : Add load of scalar data from result names
This commit is contained in:
1 parent
e2d291cda9
commit
d88bff3a72
2 files changed
+22
-5
No files matched your search
@@ -651,6 +651,22 @@ const RigCaseCellResultsData* RimEclipseCase::results(RiaDefines::PorosityModelT
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Convenience function used to pre-load data before const access of data
|
||||
/// Used when implementing calculations in a parallelized loop
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseCase::loadStaticResultsByName(const std::vector<QString>& resultNames)
|
||||
{
|
||||
RigCaseCellResultsData* cellResultsData = this->results(RiaDefines::MATRIX_MODEL);
|
||||
if(cellResultsData)
|
||||
{
|
||||
for (const auto& resultName : resultNames)
|
||||
{
|
||||
cellResultsData->findOrLoadScalarResult(RiaDefines::STATIC_NATIVE, resultName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user