Merge pull request #5561 from akva2/janitoring

amgcpr: use override
This commit is contained in:
Bård Skaflestad 2024-08-27 09:18:04 +02:00 committed by GitHub
commit 359e4903d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.