]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid warning message about hidden virtual function. Remove name of unused argument.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 Sep 2010 21:54:39 +0000 (21:54 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 Sep 2010 21:54:39 +0000 (21:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@22097 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/distorted_cells_05.cc

index 5367c6168514d75ff8ec8d20f128276174b2f1ef..381badaca0eb4141adcb194d1545150b7277912d 100644 (file)
@@ -66,8 +66,9 @@ class MyBoundary : public Boundary<dim>
        return Point<dim>(0,0,1.25);
       }
 
+    virtual
     Point<dim>
-    project_to_surface (const typename Triangulation<dim>::line_iterator &line,
+    project_to_surface (const typename Triangulation<dim>::line_iterator &,
                        const Point<dim> &p) const
       {
        deallog << "Projecting line point " << p << std::endl;
@@ -78,8 +79,9 @@ class MyBoundary : public Boundary<dim>
          return p;
       }
 
+    virtual
     Point<dim>
-    project_to_surface (const typename Triangulation<dim>::quad_iterator &line,
+    project_to_surface (const typename Triangulation<dim>::quad_iterator &,
                        const Point<dim> &p) const
       {
        deallog << "Projecting quad point " << p << std::endl;
@@ -90,6 +92,15 @@ class MyBoundary : public Boundary<dim>
                          1.25-2.25*std::max(std::fabs(p[0]),
                                             std::fabs(p[1])));
       }
+
+    virtual
+    Point<dim>
+    project_to_surface (const typename Triangulation<dim>::hex_iterator &,
+                       const Point<dim> &) const
+      {
+       Assert (false, ExcInternalError());
+       return Point<dim>();
+      }
 };
 
 

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.