diff --git a/opm/core/simulator/initStateEquil_impl.hpp b/opm/core/simulator/initStateEquil_impl.hpp index 761499ba..ef5d6996 100644 --- a/opm/core/simulator/initStateEquil_impl.hpp +++ b/opm/core/simulator/initStateEquil_impl.hpp @@ -433,7 +433,7 @@ namespace Opm const CellRange& cells, std::vector< std::vector >& 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;