Simulation Input: Convert RigCaseCellResultsData to std::shared_ptr

Convert m_matrixModelResults and m_fractureModelResults in RigEclipseCaseData from
cvf::ref<RigCaseCellResultsData> to std::shared_ptr<RigCaseCellResultsData>,
following the same pattern as previous modernizations.

Changes:
- RigEclipseCaseData: Updated memory management, accessors, and null checks
- Added resultsShared() accessor methods for direct shared_ptr access
- RigCaseCellResultsData.h: Added includes for RigEclipseResultInfo and
  RigAllanDiagramData to support std::make_shared allocation

All 569 unit tests pass successfully.
This commit is contained in:
Kristian Bendiksen committed 2025-12-22 19:19:33 +01:00
1 parent e08056360f
commit 870b1e640e
29 files changed
+91 -85

No files matched your search

@@ -1494,7 +1494,7 @@ void RimEclipseView::onUpdateLegends()
RigEclipseCaseData* eclipseCaseData = eclipseCase()->eclipseCaseData();
CVF_ASSERT( eclipseCaseData );
RigCaseCellResultsData* results = eclipseCaseData->results( cellResult()->porosityModel() );
std::shared_ptr<RigCaseCellResultsData> results = eclipseCaseData->results( cellResult()->porosityModel() );
CVF_ASSERT( results );
updateLegendRangesTextAndVisibility( cellResult()->legendConfig(),