mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user