mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
Always use opm_common to skip inactive cells in grid ensemble stats
This commit is contained in:
1 parent
82e41e2e53
commit
9796767dc7
3 files changed
+26
-2
No files matched your search
@@ -533,8 +533,11 @@ void RimStatisticsContourMap::computeStatistics()
|
||||
|
||||
caf::ProgressInfo progInfo( nCases, QString( "Reading Eclipse Ensemble" ) );
|
||||
|
||||
auto readerSettings = RiaPreferencesGrid::current()->gridOnlyReaderSettings();
|
||||
auto casesInViews = ensemble->casesInViews();
|
||||
auto readerSettings = RiaPreferencesGrid::current()->gridOnlyReaderSettings();
|
||||
readerSettings.onlyLoadActiveCells = true;
|
||||
auto casesInViews = ensemble->casesInViews();
|
||||
auto oldReaderType = RiaPreferencesGrid::current()->gridModelReaderOverride();
|
||||
RiaPreferencesGrid::current()->setGridModelReaderOverride( RiaDefines::GridModelReader::OPM_COMMON );
|
||||
|
||||
int i = 1;
|
||||
for ( RimEclipseCase* eCase : ensemble->cases() )
|
||||
@@ -591,6 +594,8 @@ void RimStatisticsContourMap::computeStatistics()
|
||||
}
|
||||
}
|
||||
|
||||
RiaPreferencesGrid::current()->setGridModelReaderOverride( oldReaderType );
|
||||
|
||||
m_contourMapGrid = std::move( contourMapGrid );
|
||||
|
||||
doStatisticsCalculation( timestep_results );
|
||||
|
||||
Reference in new issue
Block a user