mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
remove more checks
This commit is contained in:
+2
-2
@@ -2887,12 +2887,12 @@ private:
|
|||||||
std::vector<double> rvData;
|
std::vector<double> rvData;
|
||||||
std::vector<double> tempiData;
|
std::vector<double> tempiData;
|
||||||
|
|
||||||
if (FluidSystem::phaseIsActive(waterPhaseIdx))
|
if (FluidSystem::phaseIsActive(waterPhaseIdx) && Indices::numPhases > 1)
|
||||||
waterSaturationData = fp.get_double("SWAT");
|
waterSaturationData = fp.get_double("SWAT");
|
||||||
else
|
else
|
||||||
waterSaturationData.resize(numDof);
|
waterSaturationData.resize(numDof);
|
||||||
|
|
||||||
if (FluidSystem::phaseIsActive(gasPhaseIdx))
|
if (FluidSystem::phaseIsActive(gasPhaseIdx) && FluidSystem::phaseIsActive(oilPhaseIdx))
|
||||||
gasSaturationData = fp.get_double("SGAS");
|
gasSaturationData = fp.get_double("SGAS");
|
||||||
else
|
else
|
||||||
gasSaturationData.resize(numDof);
|
gasSaturationData.resize(numDof);
|
||||||
|
|||||||
Reference in New Issue
Block a user