From 6b1da60c3f387094969b4c5c2acd5e969a60f2c1 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 20 Sep 2010 21:54:39 +0000 Subject: [PATCH] Avoid warning message about hidden virtual function. Remove name of unused argument. git-svn-id: https://svn.dealii.org/trunk@22097 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/distorted_cells_05.cc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/bits/distorted_cells_05.cc b/tests/bits/distorted_cells_05.cc index 5367c61685..381badaca0 100644 --- a/tests/bits/distorted_cells_05.cc +++ b/tests/bits/distorted_cells_05.cc @@ -66,8 +66,9 @@ class MyBoundary : public Boundary return Point(0,0,1.25); } + virtual Point - project_to_surface (const typename Triangulation::line_iterator &line, + project_to_surface (const typename Triangulation::line_iterator &, const Point &p) const { deallog << "Projecting line point " << p << std::endl; @@ -78,8 +79,9 @@ class MyBoundary : public Boundary return p; } + virtual Point - project_to_surface (const typename Triangulation::quad_iterator &line, + project_to_surface (const typename Triangulation::quad_iterator &, const Point &p) const { deallog << "Projecting quad point " << p << std::endl; @@ -90,6 +92,15 @@ class MyBoundary : public Boundary 1.25-2.25*std::max(std::fabs(p[0]), std::fabs(p[1]))); } + + virtual + Point + project_to_surface (const typename Triangulation::hex_iterator &, + const Point &) const + { + Assert (false, ExcInternalError()); + return Point(); + } }; -- 2.39.5