mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4827 Completion Data : Support Eclipse input text files as data source
This commit is contained in:
@@ -699,30 +699,6 @@ const RigCaseCellResultsData* RimEclipseCase::results( RiaDefines::PorosityModel
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Convenience function used to pre-load data before const access of data
|
||||
/// Used when implementing calculations in a parallelized loop
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimEclipseCase::loadStaticResultsByName( const std::vector<QString>& resultNames )
|
||||
{
|
||||
bool foundDataForAllResults = true;
|
||||
|
||||
RigCaseCellResultsData* cellResultsData = this->results( RiaDefines::MATRIX_MODEL );
|
||||
if ( cellResultsData )
|
||||
{
|
||||
for ( const auto& resultName : resultNames )
|
||||
{
|
||||
if ( !cellResultsData->ensureKnownResultLoaded(
|
||||
RigEclipseResultAddress( RiaDefines::STATIC_NATIVE, resultName ) ) )
|
||||
{
|
||||
foundDataForAllResults = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return foundDataForAllResults;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -81,7 +81,6 @@ public:
|
||||
|
||||
RigCaseCellResultsData* results( RiaDefines::PorosityModelType porosityModel );
|
||||
const RigCaseCellResultsData* results( RiaDefines::PorosityModelType porosityModel ) const;
|
||||
bool loadStaticResultsByName( const std::vector<QString>& resultNames );
|
||||
|
||||
RimReservoirCellResultsStorage* resultsStorage( RiaDefines::PorosityModelType porosityModel );
|
||||
const RimReservoirCellResultsStorage* resultsStorage( RiaDefines::PorosityModelType porosityModel ) const;
|
||||
|
||||
Reference in New Issue
Block a user