mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-01 08:38:00 -06:00
Well Target Mapping improvements (#13324)
* Add single case well target results into correct time step * Speed up unique value calculations by providing unique values directly to statistics cache * Switch to selected time step in view
This commit is contained in:
7 files changed
+178
-94
No files matched your search
@@ -45,6 +45,18 @@ void RigStatisticsDataCache::clearAllStatistics()
|
||||
m_statsPrTs.clear();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigStatisticsDataCache::setUniqueCellScalarValues( const std::set<int>& uniqueValuesOverride )
|
||||
{
|
||||
m_statsAllTimesteps.m_uniqueValues.assign( uniqueValuesOverride.begin(), uniqueValuesOverride.end() );
|
||||
for ( size_t i = 0; i < m_statsPrTs.size(); i++ )
|
||||
{
|
||||
m_statsPrTs[i].m_uniqueValues = m_statsAllTimesteps.m_uniqueValues;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -63,6 +63,8 @@ public:
|
||||
void mobileVolumeWeightedMean( double& mean );
|
||||
void mobileVolumeWeightedMean( size_t timeStepIndex, double& mean );
|
||||
|
||||
void setUniqueCellScalarValues( const std::set<int>& uniqueValuesOverride );
|
||||
|
||||
private:
|
||||
void computeHistogramStatisticsIfNeeded();
|
||||
void computeHistogramStatisticsIfNeeded( size_t timeStepIndex );
|
||||
|
||||
Reference in new issue
Block a user