mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Moved adding of one statistics case to contstructor to make sure the statistics case UI is displayed when creating a new grid case group
p4#: 21232
This commit is contained in:
@@ -54,6 +54,8 @@ RimIdenticalGridCaseGroup::RimIdenticalGridCaseGroup()
|
||||
|
||||
m_unionOfMatrixActiveCells = new RigActiveCellInfo;
|
||||
m_unionOfFractureActiveCells = new RigActiveCellInfo;
|
||||
|
||||
createAndAppendStatisticsCase();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -90,11 +92,6 @@ void RimIdenticalGridCaseGroup::addCase(RimCase* reservoir)
|
||||
|
||||
caseCollection()->reservoirs().push_back(reservoir);
|
||||
|
||||
if (statisticsCaseCollection->reservoirs().size() == 0)
|
||||
{
|
||||
createAndAppendStatisticsCase();
|
||||
}
|
||||
|
||||
clearActiveCellUnions();
|
||||
clearStatisticsResults();
|
||||
updateMainGridAndActiveCellsForStatisticsCases();
|
||||
|
||||
Reference in New Issue
Block a user