mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-24 16:30:02 -06:00
we only use drift compensation when wells are active
shut wells are not considered to be active.
This commit is contained in:
parent
eb0a516ff0
commit
7881161497
@ -1883,12 +1883,8 @@ public:
|
||||
|
||||
// if requested, compensate systematic mass loss for cells which were "well
|
||||
// behaved" in the last time step
|
||||
// Note that we don't allow for drift compensation if there is
|
||||
// no source terms i.e. no wells and no aquifers.
|
||||
const auto& schedule = this->simulator().vanguard().schedule();
|
||||
int episodeIdx = this->simulator().episodeIndex();
|
||||
const auto& aquifer = this->simulator().vanguard().eclState().aquifer();
|
||||
bool compensateDrift = schedule.numWells(episodeIdx) > 0 && aquifer.active();
|
||||
// Note that we don't allow for drift compensation if there are no active wells.
|
||||
const bool compensateDrift = wellModel_.wellsActive();
|
||||
if (enableDriftCompensation_ && compensateDrift) {
|
||||
const auto& simulator = this->simulator();
|
||||
const auto& model = this->model();
|
||||
|
Loading…
Reference in New Issue
Block a user