mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
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:
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(),
|
||||
|
||||
Reference in new issue
Block a user