From e5f8ea3e13bce11490fa358abb2e359fd378f256 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Fri, 20 Dec 2024 11:05:41 +0100 Subject: [PATCH] simplify: applyScaleAdd can be shared between regular and domain operators --- opm/simulators/linalg/WellOperators.hpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/opm/simulators/linalg/WellOperators.hpp b/opm/simulators/linalg/WellOperators.hpp index 574968bba..82d981b74 100644 --- a/opm/simulators/linalg/WellOperators.hpp +++ b/opm/simulators/linalg/WellOperators.hpp @@ -194,24 +194,6 @@ public: } } - void applyscaleadd(field_type alpha, const X& x, Y& y) const override - { - OPM_TIMEBLOCK(applyscaleadd); - if (this->wellMod_.empty()) { - return; - } - - if (this->scaleAddRes_.size() != y.size()) { - this->scaleAddRes_.resize(y.size()); - } - - this->scaleAddRes_ = 0.0; - // scaleAddRes_ = - C D^-1 B x - this->apply(x, this->scaleAddRes_); - // Ax = Ax + alpha * scaleAddRes_ - y.axpy(alpha, this->scaleAddRes_); - } - void addWellPressureEquations(PressureMatrix& jacobian, const X& weights, const bool use_well_weights) const override