mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
determining wells_active_ based on well_containers_ size
instead of the information in wells_ecl_, which might include shut wells
This commit is contained in:
parent
b363138240
commit
4e1cc5bd5b
@ -198,11 +198,6 @@ namespace Opm {
|
||||
this->initializeWellPerfData();
|
||||
this->initializeWellState(timeStepIdx, summaryState);
|
||||
|
||||
// Wells are active if they are active wells on at least
|
||||
// one process.
|
||||
wells_active_ = localWellsActive() ? 1 : 0;
|
||||
wells_active_ = grid.comm().max(wells_active_);
|
||||
|
||||
// handling MS well related
|
||||
if (param_.use_multisegment_well_&& anyMSWellOpenLocal()) { // if we use MultisegmentWell model
|
||||
this->wellState().initWellStateMSWell(wells_ecl_, &this->prevWellState());
|
||||
@ -264,6 +259,11 @@ namespace Opm {
|
||||
// create the well container
|
||||
createWellContainer(reportStepIdx);
|
||||
|
||||
// Wells are active if they are active wells on at least one process.
|
||||
const Grid& grid = ebosSimulator_.vanguard().grid();
|
||||
wells_active_ = !this->well_container_.empty();
|
||||
wells_active_ = grid.comm().max(wells_active_);
|
||||
|
||||
// do the initialization for all the wells
|
||||
// TODO: to see whether we can postpone of the intialization of the well containers to
|
||||
// optimize the usage of the following several member variables
|
||||
|
Loading…
Reference in New Issue
Block a user