mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Clear grouping for Grid Cross Plot if the grouping isn't valid when changing case
This commit is contained in:
@@ -126,14 +126,16 @@ RigEclipseCrossPlotResult RigEclipseCrossPlotDataExtractor::extract(RigEclipseCa
|
||||
}
|
||||
else if (groupingType == GROUP_BY_FORMATION)
|
||||
{
|
||||
CVF_ASSERT(activeFormationNames);
|
||||
int category = 0;
|
||||
size_t i(cvf::UNDEFINED_SIZE_T), j(cvf::UNDEFINED_SIZE_T), k(cvf::UNDEFINED_SIZE_T);
|
||||
if (mainGrid->ijkFromCellIndex(globalCellIdx, &i, &j, &k))
|
||||
if (activeFormationNames)
|
||||
{
|
||||
category = activeFormationNames->formationIndexFromKLayerIdx(k);
|
||||
int category = 0;
|
||||
size_t i(cvf::UNDEFINED_SIZE_T), j(cvf::UNDEFINED_SIZE_T), k(cvf::UNDEFINED_SIZE_T);
|
||||
if (mainGrid->ijkFromCellIndex(globalCellIdx, &i, &j, &k))
|
||||
{
|
||||
category = activeFormationNames->formationIndexFromKLayerIdx(k);
|
||||
}
|
||||
result.groupValuesDiscrete.push_back(category);
|
||||
}
|
||||
result.groupValuesDiscrete.push_back(category);
|
||||
}
|
||||
else if (groupingType == GROUP_BY_RESULT)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user