mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
One shared active cell info for all statistical cases
Invalidate existing statisticsCases when adding/removing source cases Moved computation of active cell union from RigStatistics to RimIdenticalGridCaseGroup Recompute active cell union when opening project file p4#: 21023
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
class RimReservoir;
|
||||
class RigMainGrid;
|
||||
class RigActiveCellInfo;
|
||||
|
||||
//==================================================================================================
|
||||
//
|
||||
@@ -47,15 +48,29 @@ public:
|
||||
void addCase(RimReservoir* reservoir);
|
||||
void removeCase(RimReservoir* reservoir);
|
||||
|
||||
RimStatisticalCalculation* createAndAppendStatisticalCalculation();
|
||||
|
||||
caf::PdmField<RimCaseCollection*> caseCollection;
|
||||
caf::PdmField<RimStatisticalCollection*> statisticalReservoirCollection;
|
||||
|
||||
RigMainGrid* mainGrid();
|
||||
|
||||
void computeUnionOfActiveCells();
|
||||
|
||||
protected:
|
||||
virtual caf::PdmFieldHandle* userDescriptionField();
|
||||
|
||||
virtual void initAfterRead();
|
||||
|
||||
private:
|
||||
void updateMainGridAndActiveCellsForStatisticsCases();
|
||||
void clearStatisticsResults();
|
||||
void clearActiveCellUnions();
|
||||
|
||||
|
||||
private:
|
||||
RigMainGrid* m_mainGrid;
|
||||
|
||||
cvf::ref<RigActiveCellInfo> m_unionOfMatrixActiveCells;
|
||||
cvf::ref<RigActiveCellInfo> m_unionOfFractureActiveCells;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user