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:
JJ authored and GitHub committed 2025-12-13 09:35:27 +01:00
1 parent e7ac0675db
commit 09b8602213
7 files changed
+178 -94

No files matched your search

@@ -497,12 +497,16 @@ const RigActiveCellInfo* RigCaseCellResultsData::activeCellInfo() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigCaseCellResultsData::recalculateStatistics( const RigEclipseResultAddress& resVarAddr )
void RigCaseCellResultsData::recalculateStatistics( const RigEclipseResultAddress& resVarAddr, const std::set<int>& uniqueValuesOverride )
{
size_t scalarResultIndex = findScalarResultIndexFromAddress( resVarAddr );
if ( scalarResultIndex < m_cellScalarResults.size() )
{
m_statisticsDataCache[scalarResultIndex]->clearAllStatistics();
if ( !uniqueValuesOverride.empty() )
{
m_statisticsDataCache[scalarResultIndex]->setUniqueCellScalarValues( uniqueValuesOverride );
}
}
}