mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
select case if many cases present
This commit is contained in:
@@ -43,7 +43,7 @@ RimSaturationPressurePlot::RimSaturationPressurePlot()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSaturationPressurePlot::assignCaseAndEquilibriumRegion(RiaDefines::PorosityModelType porosityType,
|
||||
void RimSaturationPressurePlot::assignCaseAndEquilibriumRegion(RiaDefines::PorosityModelType porosityModel,
|
||||
RimEclipseResultCase* eclipseResultCase,
|
||||
int zeroBasedEquilRegionIndex)
|
||||
{
|
||||
@@ -85,7 +85,7 @@ void RimSaturationPressurePlot::assignCaseAndEquilibriumRegion(RiaDefines::Poros
|
||||
curveSet->addCellFilter(cellFilter);
|
||||
|
||||
{
|
||||
RigCaseCellResultsData* caseCellResultsData = eclipseResultCase->eclipseCaseData()->results(porosityType);
|
||||
RigCaseCellResultsData* caseCellResultsData = eclipseResultCase->eclipseCaseData()->results(porosityModel);
|
||||
if (caseCellResultsData)
|
||||
{
|
||||
RigEclipseResultAddress depthResultAddress(RiaDefines::STATIC_NATIVE, "DEPTH");
|
||||
@@ -128,7 +128,7 @@ void RimSaturationPressurePlot::assignCaseAndEquilibriumRegion(RiaDefines::Poros
|
||||
}
|
||||
|
||||
{
|
||||
RigCaseCellResultsData* caseCellResultsData = eclipseResultCase->eclipseCaseData()->results(porosityType);
|
||||
RigCaseCellResultsData* caseCellResultsData = eclipseResultCase->eclipseCaseData()->results(porosityModel);
|
||||
if (caseCellResultsData)
|
||||
{
|
||||
RigEclipseResultAddress depthResultAddress(RiaDefines::STATIC_NATIVE, "DEPTH");
|
||||
|
||||
@@ -35,7 +35,7 @@ class RimSaturationPressurePlot : public RimGridCrossPlot
|
||||
public:
|
||||
RimSaturationPressurePlot();
|
||||
|
||||
void assignCaseAndEquilibriumRegion(RiaDefines::PorosityModelType porosityType,
|
||||
void assignCaseAndEquilibriumRegion(RiaDefines::PorosityModelType porosityModel,
|
||||
RimEclipseResultCase* eclipseResultCase,
|
||||
int zeroBasedEquilRegionIndex);
|
||||
|
||||
|
||||
@@ -52,6 +52,8 @@ void RimSaturationPressurePlotCollection::createSaturationPressurePlots(RimEclip
|
||||
RigEclipseCaseData* eclipseCaseData = eclipseResultCase->eclipseCaseData();
|
||||
if (!eclipseCaseData) return;
|
||||
|
||||
m_saturationPressurePlots.deleteAllChildObjects();
|
||||
|
||||
std::vector<RigEquil> equilData = eclipseCaseData->equilData();
|
||||
for (size_t i = 0; i < equilData.size(); i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user