From 8fe55dba4e6cc1fe1b78ded6d971e65b750804bd Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Fri, 19 Jan 2024 09:09:56 +0100 Subject: [PATCH] Remove check for active wells for drift compensation --- opm/simulators/flow/FlowProblem.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/opm/simulators/flow/FlowProblem.hpp b/opm/simulators/flow/FlowProblem.hpp index 0de1390a7..c29cb42a5 100644 --- a/opm/simulators/flow/FlowProblem.hpp +++ b/opm/simulators/flow/FlowProblem.hpp @@ -1543,9 +1543,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();