From 12f5a6aaff4e5d6a8333f49309737ec185ef5599 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Mon, 14 Dec 2020 16:13:11 +0100 Subject: [PATCH] Fixes StandardWell::allDrawDownWrongDirection for distributed wells. --- opm/simulators/wells/StandardWell_impl.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/opm/simulators/wells/StandardWell_impl.hpp b/opm/simulators/wells/StandardWell_impl.hpp index dbb92009c..758313628 100644 --- a/opm/simulators/wells/StandardWell_impl.hpp +++ b/opm/simulators/wells/StandardWell_impl.hpp @@ -1802,6 +1802,13 @@ namespace Opm } } + const auto& comm = this->parallel_well_info_.communication(); + if (comm.size() > 1) + { + all_drawdown_wrong_direction = + (comm.min(all_drawdown_wrong_direction ? 1 : 0) == 1); + } + return all_drawdown_wrong_direction; }