mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2328 Water flooded PV: Remove warning. Remove injection flooding option if no fluxes are available
This commit is contained in:
parent
5273ace5e6
commit
83ed95a311
@ -277,22 +277,6 @@ void RimEclipseCellColors::updateLegendData(size_t currentTimeStep)
|
|||||||
{
|
{
|
||||||
if (this->isFlowDiagOrInjectionFlooding())
|
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 globalMin, globalMax;
|
||||||
double globalPosClosestToZero, globalNegClosestToZero;
|
double globalPosClosestToZero, globalNegClosestToZero;
|
||||||
RigFlowDiagResults* flowResultsData = this->flowDiagSolution()->flowDiagResults();
|
RigFlowDiagResults* flowResultsData = this->flowDiagSolution()->flowDiagResults();
|
||||||
|
@ -458,7 +458,13 @@ QList<caf::PdmOptionItemInfo> RimEclipseResultDefinition::calculateValueOptions(
|
|||||||
bool enableSouring = false;
|
bool enableSouring = false;
|
||||||
|
|
||||||
#ifdef ENABLE_SOURING
|
#ifdef ENABLE_SOURING
|
||||||
enableSouring = true;
|
RigCaseCellResultsData* cellResultsData = m_eclipseCase->results(this->porosityModel());
|
||||||
|
|
||||||
|
if (cellResultsData->hasFlowDiagUsableFluxes())
|
||||||
|
{
|
||||||
|
enableSouring = true;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* ENABLE_SOURING */
|
#endif /* ENABLE_SOURING */
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user