From 6b8b8b971ec6161e3edb541f53e153a698833746 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 4 Apr 2017 09:54:27 +0200 Subject: [PATCH] Use global wellsActive to see whether wells are active at all. This bug must have sneaked in during rebasing. Kudos to Atgeirr for spotting this. --- opm/autodiff/BlackoilModelEbos.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/autodiff/BlackoilModelEbos.hpp b/opm/autodiff/BlackoilModelEbos.hpp index f32f62447..89468011b 100644 --- a/opm/autodiff/BlackoilModelEbos.hpp +++ b/opm/autodiff/BlackoilModelEbos.hpp @@ -183,7 +183,7 @@ namespace Opm { // one process. int wellsActive = localWellsActive() ? 1 : 0; wellsActive = grid_.comm().max(wellsActive); - wellModel().setWellsActive( localWellsActive() ); + wellModel().setWellsActive( wellsActive ); // compute global sum of number of cells global_nc_ = detail::countGlobalCells(grid_); well_model_.init(fluid_.phaseUsage(), active_, &vfp_properties_, gravity, depth, pv, &rate_converter_, global_nc_);