From d93ef1a0a8673e4a3cc6096e3944461e51110ca1 Mon Sep 17 00:00:00 2001 From: Stefano Dominici Date: Thu, 18 Oct 2018 15:25:30 +0200 Subject: [PATCH] Added virtual destructor to classes derived from ChartManifold PolarManifold, TensorProductManifol, and TorusManifold were lacking a virtual destructor. --- include/deal.II/grid/manifold_lib.h | 15 +++++++++++++++ include/deal.II/grid/tensor_product_manifold.h | 5 +++++ 2 files changed, 20 insertions(+) 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. */ -- 2.39.5