]> https://gitweb.dealii.org/ - dealii.git/commitdiff
examples/step-37: Mark value() as override
authorMatthias Maier <tamiko@43-1.org>
Mon, 6 Mar 2023 19:36:28 +0000 (13:36 -0600)
committerMatthias Maier <tamiko@43-1.org>
Fri, 17 Mar 2023 12:44:54 +0000 (07:44 -0500)
tests/mpi/step-37.cc

index 3f18dbbc6fa4cbb9b80ff5a63b02735d68f4cdbd..8d06ccd93e8dd565cb990550cbe1aa0d21277299 100644 (file)
@@ -297,7 +297,7 @@ namespace Step37
     virtual ~PotentialBCFunction() = default;
 
     virtual double
-    value(const Point<dim> &p, const unsigned int) const
+    value(const Point<dim> &p, const unsigned int) const override
     {
       const double r = p.distance(x0);
       Assert(r > 0, ExcDivideByZero());

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.