From: Guido Kanschat Date: Wed, 19 Aug 2009 04:57:06 +0000 (+0000) Subject: remove reference to 3D in 2D X-Git-Tag: v8.0.0~7259 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15d9c40a79654ab43c1f3fe7305b3fc0acf504d9;p=dealii.git remove reference to 3D in 2D git-svn-id: https://svn.dealii.org/trunk@19309 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/tria_boundary_lib.cc b/deal.II/deal.II/source/grid/tria_boundary_lib.cc index 64a28a358e..ad8ece116a 100644 --- a/deal.II/deal.II/source/grid/tria_boundary_lib.cc +++ b/deal.II/deal.II/source/grid/tria_boundary_lib.cc @@ -335,15 +335,16 @@ get_new_point_on_line (const typename Triangulation::line_iterator &line) c } +#if deal_II_dimension == 3 -template<> -Point<3> -ConeBoundary<3>::get_new_point_on_quad (const Triangulation<3>::quad_iterator &quad) const +template +Point +ConeBoundary::get_new_point_on_quad (const Triangulation<3>::quad_iterator &quad) const { - const Point<3> axis = x_1 - x_0; + const Point axis = x_1 - x_0; // Compute the middle point of the // quad. - const Point<3> middle = StraightBoundary<3>::get_new_point_on_quad (quad); + const Point middle = StraightBoundary<3>::get_new_point_on_quad (quad); // Same algorithm as above: To // project it on the boundary of // the cone we first compute the @@ -351,14 +352,14 @@ ConeBoundary<3>::get_new_point_on_quad (const Triangulation<3>::quad_iterator &q // middle point onto the axis of // the cone. const double c = (middle - x_0) * axis / axis.square (); - const Point<3> middle_p = x_0 + c * axis; + const Point middle_p = x_0 + c * axis; // Compute the projection of the // middle point on the boundary // of the cone. return middle_p + get_radius (middle_p) * (middle - middle_p) / (middle - middle_p).norm (); } - +#else template Point @@ -370,7 +371,7 @@ get_new_point_on_quad (const typename Triangulation::quad_iterator &) const return Point(); } - +#endif template void