From 8ebfe074f193d9e94c8dd6020a48d52729e18e1a Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Thu, 8 Nov 2018 10:38:49 +0100 Subject: [PATCH] #3642 Make sure cell visibility storage is cleared when LGRs are created. * This fixes data corruption causing both #3632 and #3643. --- ApplicationCode/ProjectDataModel/RimEclipseView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp index e9b6820b67..fcc5474058 100644 --- a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp +++ b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp @@ -819,7 +819,7 @@ void RimEclipseView::onLoadDataAndUpdate() this->faultCollection()->syncronizeFaults(); - m_reservoirGridPartManager->clearGeometryCache(); + scheduleReservoirGridGeometryRegen(); m_simWellsPartManager->clearGeometryCache(); syncronizeWellsWithResults(); @@ -1000,6 +1000,7 @@ void RimEclipseView::scheduleGeometryRegen(RivCellSetEnum geometryType) void RimEclipseView::scheduleReservoirGridGeometryRegen() { m_reservoirGridPartManager->clearGeometryCache(); + m_currentReservoirCellVisibility = nullptr; } //--------------------------------------------------------------------------------------------------