From 021d6c2b0c9fd6d28d586d062485ec7ff14d6062 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Sat, 24 Aug 2024 15:43:50 +0200 Subject: [PATCH] amgcpr: use override --- opm/simulators/linalg/amgcpr.hh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/opm/simulators/linalg/amgcpr.hh b/opm/simulators/linalg/amgcpr.hh index 7ec7bcbf0a..0aae693efa 100644 --- a/opm/simulators/linalg/amgcpr.hh +++ b/opm/simulators/linalg/amgcpr.hh @@ -158,23 +158,24 @@ namespace Dune ~AMGCPR(); /** \copydoc Preconditioner::pre */ - void pre(Domain& x, Range& b); + void pre(Domain& x, Range& b) override; /** \copydoc Preconditioner::apply */ - void apply(Domain& v, const Range& d); + void apply(Domain& v, const Range& d) override; //! Category of the preconditioner (see SolverCategory::Category) - virtual SolverCategory::Category category() const + SolverCategory::Category category() const override { return category_; } - virtual bool hasPerfectUpdate() const override { + bool hasPerfectUpdate() const override + { return false; } /** \copydoc Preconditioner::post */ - void post(Domain& x); + void post(Domain& x) override; /** * @brief Get the aggregate number of each unknown on the coarsest level. @@ -247,7 +248,7 @@ namespace Dune /** * @brief Update the coarse solver and the hierarchies. */ - virtual void update(); + void update() override; /** * @brief Check whether the coarse solver used is a direct solver.