]> 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:55:25 +0000 (21:55 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 Sep 2010 21:55:25 +0000 (21:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@22098 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/distorted_cells_04.cc

index d18cbed2a91b735f62c9e80e1a8c56dcb39660b2..5b1d4a0030c785c6092de3ee45dd01123b2289f0 100644 (file)
@@ -64,8 +64,9 @@ class MyBoundary : public Boundary<dim>
        return Point<dim>(0,0,.75);
       }
 
+    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;
@@ -76,8 +77,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;
@@ -88,6 +90,15 @@ class MyBoundary : public Boundary<dim>
                          0.75-1.75*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.