#2328 Water flooded PV: Remove warning. Remove injection flooding option if no fluxes are available

This commit is contained in:
Rebecca Cox
2018-01-25 18:24:12 +01:00
parent 5273ace5e6
commit 83ed95a311
2 changed files with 7 additions and 17 deletions

View File

@@ -277,22 +277,6 @@ void RimEclipseCellColors::updateLegendData(size_t currentTimeStep)
{
if (this->isFlowDiagOrInjectionFlooding())
{
RimEclipseCase* rimEclipseCase = nullptr;
this->firstAncestorOrThisOfType(rimEclipseCase);
CVF_ASSERT(rimEclipseCase);
if (!rimEclipseCase) return;
RigEclipseCaseData* eclipseCase = rimEclipseCase->eclipseCaseData();
CVF_ASSERT(eclipseCase);
if (!eclipseCase) return;
RigCaseCellResultsData* cellResultsData = eclipseCase->results(this->porosityModel());
if (!cellResultsData->hasFlowDiagUsableFluxes())
{
QMessageBox::warning(RiuMainWindow::instance(), "Injection Flooding", "Cannot calculate any injection flooding properties, since no fluxes are available");
return;
}
double globalMin, globalMax;
double globalPosClosestToZero, globalNegClosestToZero;
RigFlowDiagResults* flowResultsData = this->flowDiagSolution()->flowDiagResults();