From d1a654f414673cbe0180fd3b40a0659b4afaf67e Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Wed, 22 Nov 2017 09:24:52 +0100 Subject: [PATCH] Fix 2p bug --- opm/core/simulator/initStateEquil_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;