Fix 2p bug

This commit is contained in:
Tor Harald Sandve 2017-11-22 09:24:52 +01:00 committed by Andreas Lauser
parent 1e10d25c24
commit da6c4bf0c4

View File

@ -433,7 +433,7 @@ namespace Opm
const CellRange& cells,
std::vector< std::vector<double> >& press)
{
const bool water = FluidSystem::phaseIsActive(FluidSystem::oilPhaseIdx);
const bool water = FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx);
const bool oil = FluidSystem::phaseIsActive(FluidSystem::oilPhaseIdx);
const bool gas = FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx);
const int oilpos = FluidSystem::oilPhaseIdx;