mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1353 Compute valid statistics for parameters with results for all cells
This commit is contained in:
parent
a7b3bca94a
commit
ceec6cb9ec
@ -64,7 +64,11 @@ private:
|
||||
{
|
||||
if (!(*m_cellVisibilities)[cIdx]) continue;
|
||||
|
||||
size_t cellResultIndex = actCellInfo->cellResultIndex(cIdx);
|
||||
size_t cellResultIndex = cIdx;
|
||||
if (m_caseData->isUsingGlobalActiveIndex(m_scalarResultIndex))
|
||||
{
|
||||
cellResultIndex = actCellInfo->cellResultIndex(cIdx);
|
||||
}
|
||||
|
||||
if (cellResultIndex != cvf::UNDEFINED_SIZE_T) accumulator.addValue(values[cellResultIndex]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user