From f1965a58f30ebad50b462645dde008379844a374 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Thu, 27 May 2021 14:24:32 +0200 Subject: [PATCH] eclpeacemanwell: use override --- ebos/eclpeacemanwell.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ebos/eclpeacemanwell.hh b/ebos/eclpeacemanwell.hh index 7582bf9b8..0f4e0a749 100644 --- a/ebos/eclpeacemanwell.hh +++ b/ebos/eclpeacemanwell.hh @@ -294,13 +294,13 @@ public: /*! * \copydoc Opm::BaseAuxiliaryModule::numDofs() */ - virtual unsigned numDofs() const + unsigned numDofs() const override { return 1; } /*! * \copydoc Opm::BaseAuxiliaryModule::addNeighbors() */ - virtual void addNeighbors(std::vector& neighbors) const + void addNeighbors(std::vector& neighbors) const override { int wellGlobalDof = AuxModule::localToGlobalDof(/*localDofIdx=*/0); @@ -320,7 +320,7 @@ public: /*! * \copydoc Opm::BaseAuxiliaryModule::addNeighbors() */ - virtual void applyInitial() + void applyInitial() override { auto& sol = const_cast(simulator_.model().solution(/*timeIdx=*/0)); @@ -342,7 +342,7 @@ public: /*! * \copydoc Opm::BaseAuxiliaryModule::linearize() */ - virtual void linearize(SparseMatrixAdapter& matrix, GlobalEqVector& residual) + void linearize(SparseMatrixAdapter& matrix, GlobalEqVector& residual) override { const SolutionVector& curSol = simulator_.model().solution(/*timeIdx=*/0);