#3642 Make sure cell visibility storage is cleared when LGRs are created.

* This fixes data corruption causing both #3632 and #3643.
This commit is contained in:
Gaute Lindkvist 2018-11-08 10:38:49 +01:00
parent cfb45f674a
commit 8ebfe074f1

View File

@ -819,7 +819,7 @@ void RimEclipseView::onLoadDataAndUpdate()
this->faultCollection()->syncronizeFaults(); this->faultCollection()->syncronizeFaults();
m_reservoirGridPartManager->clearGeometryCache(); scheduleReservoirGridGeometryRegen();
m_simWellsPartManager->clearGeometryCache(); m_simWellsPartManager->clearGeometryCache();
syncronizeWellsWithResults(); syncronizeWellsWithResults();
@ -1000,6 +1000,7 @@ void RimEclipseView::scheduleGeometryRegen(RivCellSetEnum geometryType)
void RimEclipseView::scheduleReservoirGridGeometryRegen() void RimEclipseView::scheduleReservoirGridGeometryRegen()
{ {
m_reservoirGridPartManager->clearGeometryCache(); m_reservoirGridPartManager->clearGeometryCache();
m_currentReservoirCellVisibility = nullptr;
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------