From: Stefano Dominici Date: Thu, 18 Oct 2018 13:25:30 +0000 (+0200) Subject: Added virtual destructor to classes derived from ChartManifold X-Git-Tag: v9.1.0-rc1~605^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d93ef1a0a8673e4a3cc6096e3944461e51110ca1;p=dealii.git Added virtual destructor to classes derived from ChartManifold PolarManifold, TensorProductManifol, and TorusManifold were lacking a virtual destructor. --- diff --git a/include/deal.II/grid/manifold_lib.h b/include/deal.II/grid/manifold_lib.h index f6da483202..a4498acaf3 100644 --- a/include/deal.II/grid/manifold_lib.h +++ b/include/deal.II/grid/manifold_lib.h @@ -73,6 +73,11 @@ public: */ PolarManifold(const Point center = Point()); + /** + * Virtual destructor + */ + virtual ~PolarManifold() = default; + /** * Make a clone of this Manifold object. */ @@ -399,6 +404,10 @@ public: const Point & point_on_axis, const double tolerance = 1e-10); + /** + * Virtual destructor. + */ + virtual ~CylindricalManifold() = default; /** * Make a clone of this Manifold object. */ @@ -498,6 +507,7 @@ public: const Tensor<1, chartdim> &periodicity = Tensor<1, chartdim>(), const double tolerance = 1e-10); + /** * Expressions constructor. Takes the expressions of the push_forward * function of spacedim components, and of the pull_back function of @p @@ -667,6 +677,11 @@ public: */ TorusManifold(const double R, const double r); + /** + * Virtual destructor + */ + virtual ~TorusManifold() = default; + /** * Make a clone of this Manifold object. */ diff --git a/include/deal.II/grid/tensor_product_manifold.h b/include/deal.II/grid/tensor_product_manifold.h index d0b4e7bc31..2c847d6099 100644 --- a/include/deal.II/grid/tensor_product_manifold.h +++ b/include/deal.II/grid/tensor_product_manifold.h @@ -89,6 +89,11 @@ public: const ChartManifold &manifold_A, const ChartManifold &manifold_B); + /** + * Virtual destructor + */ + virtual ~TensorProductManifold() = default; + /** * Clone this manifold. */