From c67692fded4b84361f9a0cd08542546fd7449d57 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 30 Sep 2016 16:16:27 +0200 Subject: [PATCH] Remove warning about hidden function --- include/deal.II/grid/manifold_lib.h | 9 +++++++++ source/grid/manifold_lib.cc | 8 ++++++++ 2 files changed, 17 insertions(+) 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:: -- 2.39.5