Merge pull request #5110 from totto82/fixDrift

Remove check for active wells for drift compensation
This commit is contained in:
Atgeirr Flø Rasmussen 2024-08-20 09:53:25 +02:00 committed by GitHub
commit 1615719993
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1498,9 +1498,7 @@ 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 are no active wells.
const bool compensateDrift = wellModel_.wellsActive();
if (enableDriftCompensation_ && compensateDrift) {
if (enableDriftCompensation_) {
const auto& simulator = this->simulator();
const auto& model = this->model();