From 2a20ad8283b713e4a50c7f476570ed0188f1fba2 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Fri, 14 Apr 2023 15:30:38 +0200 Subject: [PATCH] pick currect version of flow for gas-water-vapwat case --- opm/simulators/flow/Main.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opm/simulators/flow/Main.hpp b/opm/simulators/flow/Main.hpp index 498f44d43..dbf2ee9f2 100644 --- a/opm/simulators/flow/Main.hpp +++ b/opm/simulators/flow/Main.hpp @@ -438,6 +438,7 @@ private: { const bool diffusive = eclipseState_->getSimulationConfig().isDiffusive(); const bool disgasw = eclipseState_->getSimulationConfig().hasDISGASW(); + const bool vapwat = eclipseState_->getSimulationConfig().hasVAPWAT(); // oil-gas if (phases.active( Phase::OIL ) && phases.active( Phase::GAS )) { @@ -461,7 +462,7 @@ private: // gas-water else if ( phases.active( Phase::GAS ) && phases.active( Phase::WATER ) ) { - if (disgasw) { + if (disgasw || vapwat) { if (diffusive) { return flowEbosGasWaterDissolutionDiffuseMain(argc_, argv_, outputCout_, outputFiles_); } @@ -469,7 +470,7 @@ private: } if (diffusive) { if (outputCout_) { - std::cerr << "The DIFFUSE option is not available for the two-phase gas/water model without disgasw." << std::endl; + std::cerr << "The DIFFUSE option is not available for the two-phase gas/water model without disgasw or vapwat." << std::endl; } return EXIT_FAILURE; }