From: Daniel Arndt Date: Fri, 30 Sep 2016 14:16:27 +0000 (+0200) Subject: Remove warning about hidden function X-Git-Tag: v8.5.0-rc1~627^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c67692fded4b84361f9a0cd08542546fd7449d57;p=dealii.git Remove warning about hidden function --- diff --git a/include/deal.II/grid/manifold_lib.h b/include/deal.II/grid/manifold_lib.h index f63734c176..cde73c68d7 100644 --- a/include/deal.II/grid/manifold_lib.h +++ b/include/deal.II/grid/manifold_lib.h @@ -227,6 +227,15 @@ public: get_tangent_vector (const Point &x1, const Point &x2) const; + /** + * Return a point on the spherical manifold which is intermediate + * with respect to the surrounding points. + * + * @deprecated Use the other function that takes points and weights separately instead. + */ + virtual + Point + get_new_point(const dealii::Quadrature &quadrature) const DEAL_II_DEPRECATED; /** * Return a point on the spherical manifold which is intermediate diff --git a/source/grid/manifold_lib.cc b/source/grid/manifold_lib.cc index a45001c39c..1feaf89705 100644 --- a/source/grid/manifold_lib.cc +++ b/source/grid/manifold_lib.cc @@ -261,6 +261,14 @@ get_tangent_vector (const Point &p1, return (r1-r2)*e1 + r1*gamma*tg; } +template +Point +SphericalManifold:: +get_new_point (const Quadrature &quad) const +{ + return get_new_point(quad.get_points(),quad.get_weights()); +} + template Point SphericalManifold::