#3549 Temporary LGR : Reload grid after creating LGRs

This commit is contained in:
Magne Sjaastad 2018-10-25 12:05:28 +02:00
parent e0202f87af
commit a9457b85c8

View File

@ -143,7 +143,15 @@ void RicCreateTemporaryLgrFeature::onActionTriggered(bool isChecked)
computeCachedData(eclipseCase);
RiaApplication::instance()->project()->mainPlotCollection()->wellLogPlotCollection()->reloadAllPlots();
RiaCompletionTypeCalculationScheduler::instance()->scheduleRecalculateCompletionTypeAndRedrawAllViews(eclipseCase);
for (const auto& v : eclipseCase->views())
{
RimEclipseView* eclipseView = dynamic_cast<RimEclipseView*>(v);
if (eclipseView)
{
eclipseView->scheduleReservoirGridGeometryRegen();
eclipseView->scheduleCreateDisplayModelAndRedraw();
}
}
if (intersectsExistingLgr)
{
@ -272,6 +280,7 @@ void RicCreateTemporaryLgrFeature::deleteAllCachedData(RimEclipseCase* eclipseCa
if (eclipseCaseData)
{
eclipseCaseData->clearWellCellsInGridCache();
eclipseCaseData->setVirtualPerforationTransmissibilities(nullptr);
}
}
}