#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

@@ -458,7 +458,13 @@ QList<caf::PdmOptionItemInfo> RimEclipseResultDefinition::calculateValueOptions(
bool enableSouring = false;
#ifdef ENABLE_SOURING
enableSouring = true;
RigCaseCellResultsData* cellResultsData = m_eclipseCase->results(this->porosityModel());
if (cellResultsData->hasFlowDiagUsableFluxes())
{
enableSouring = true;
}
#endif /* ENABLE_SOURING */