mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 22:50:25 -05:00
#13124 Show SWAT/SGAS instead of Saturation
This commit is contained in:
1 parent
a693aa6d09
commit
7e7e7e0528
2 files changed
+13
-24
No files matched your search
@@ -643,30 +643,10 @@ QString RiuRelativePermeabilityPlotPanel::determineXAxisTitleFromCurveCollection
|
||||
bool sawWater = false;
|
||||
bool sawGas = false;
|
||||
|
||||
for ( RigFlowDiagDefines::RelPermCurve curve : curveArr )
|
||||
for ( const RigFlowDiagDefines::RelPermCurve& curve : curveArr )
|
||||
{
|
||||
switch ( curve.ident )
|
||||
{
|
||||
case RigFlowDiagDefines::RelPermCurve::KRW:
|
||||
sawWater = true;
|
||||
break;
|
||||
case RigFlowDiagDefines::RelPermCurve::KROW:
|
||||
sawWater = true;
|
||||
break;
|
||||
case RigFlowDiagDefines::RelPermCurve::PCOW:
|
||||
sawWater = true;
|
||||
break;
|
||||
|
||||
case RigFlowDiagDefines::RelPermCurve::KRG:
|
||||
sawGas = true;
|
||||
break;
|
||||
case RigFlowDiagDefines::RelPermCurve::KROG:
|
||||
sawGas = true;
|
||||
break;
|
||||
case RigFlowDiagDefines::RelPermCurve::PCOG:
|
||||
sawGas = true;
|
||||
break;
|
||||
}
|
||||
if ( curve.isWaterCurve() ) sawWater = true;
|
||||
if ( curve.isGasCurve() ) sawGas = true;
|
||||
}
|
||||
|
||||
QString title = "";
|
||||
@@ -792,7 +772,13 @@ QString RiuRelativePermeabilityPlotPanel::asciiDataForUiSelectedCurves() const
|
||||
if ( icurve > 0 ) outTxt += "\t";
|
||||
|
||||
const RigFlowDiagDefines::RelPermCurve& curve = selectedCurves[icurve];
|
||||
outTxt += "Saturation";
|
||||
|
||||
if ( curve.isWaterCurve() )
|
||||
outTxt += "SWAT";
|
||||
else if ( curve.isGasCurve() )
|
||||
outTxt += "SGAS";
|
||||
else
|
||||
outTxt += "Saturation";
|
||||
outTxt += "\t";
|
||||
outTxt += curve.name.c_str();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user