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.
This commit is contained in:
Markus Blatt
2017-04-04 09:54:27 +02:00
parent cde162b3d6
commit 6b8b8b971e

View File

@@ -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_);