From: Wolfgang Bangerth Date: Fri, 7 Apr 2023 21:19:31 +0000 (-0600) Subject: Avoid a warning about overriden functions. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F124%2Fhead;p=code-gallery.git Avoid a warning about overriden functions. --- diff --git a/parallel_in_time/src/HeatEquation.hh b/parallel_in_time/src/HeatEquation.hh index 3013be4..b2a57bb 100644 --- a/parallel_in_time/src/HeatEquation.hh +++ b/parallel_in_time/src/HeatEquation.hh @@ -105,7 +105,7 @@ public: {} virtual double value (const Point &p, - const unsigned int component = 0) const; + const unsigned int component = 0) const override; private: const double period; @@ -118,7 +118,7 @@ class BoundaryValues : public Function { public: virtual double value (const Point &p, - const unsigned int component = 0) const; + const unsigned int component = 0) const override; }; // The RightHandSideMFG class describes the right hand side @@ -128,7 +128,7 @@ class RightHandSideMFG : public Function { public: virtual double value (const Point &p, - const unsigned int component = 0) const; + const unsigned int component = 0) const override; }; // The InitialValuesMFG class describes the initial values @@ -138,7 +138,7 @@ class InitialValuesMFG : public Function { public: virtual double value (const Point &p, - const unsigned int component = 0) const; + const unsigned int component = 0) const override; }; // Provides the exact value for the manufactured solution. This @@ -159,7 +159,7 @@ public: * \return double The exact value that was computed */ virtual double value (const Point &p, - const unsigned int component = 0) const; + const unsigned int component = 0) const override; /** * \brief Computes the gradient of the exact solution at the given point @@ -174,7 +174,7 @@ public: * in each spatial dimension */ virtual Tensor<1,dim> gradient (const Point &p, - const unsigned int component = 0) const; + const unsigned int component = 0) const override; };