]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added virtual destructor to classes derived from ChartManifold
authorStefano Dominici <sfndmn@gmail.com>
Thu, 18 Oct 2018 13:25:30 +0000 (15:25 +0200)
committerStefano Dominici <sfndmn@gmail.com>
Thu, 18 Oct 2018 13:30:02 +0000 (15:30 +0200)
PolarManifold, TensorProductManifol, and TorusManifold
were lacking a virtual destructor.

include/deal.II/grid/manifold_lib.h
include/deal.II/grid/tensor_product_manifold.h

index f6da4832029ac3b6fd3ef12da157e74c5b952f40..a4498acaf39f6449c9e17146925f2a5a3d9783de 100644 (file)
@@ -73,6 +73,11 @@ public:
    */
   PolarManifold(const Point<spacedim> center = Point<spacedim>());
 
+  /**
+   * Virtual destructor
+   */
+  virtual ~PolarManifold() = default;
+
   /**
    * Make a clone of this Manifold object.
    */
@@ -399,6 +404,10 @@ public:
                       const Point<spacedim> &    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.
    */
index d0b4e7bc316b8cacebd45c942292b305dc9e45a0..2c847d6099ef6e786e9b8297490baa3d83bf4924 100644 (file)
@@ -89,6 +89,11 @@ public:
     const ChartManifold<dim_A, spacedim_A, chartdim_A> &manifold_A,
     const ChartManifold<dim_B, spacedim_B, chartdim_B> &manifold_B);
 
+  /**
+   * Virtual destructor
+   */
+  virtual ~TensorProductManifold() = default;
+
   /**
    * Clone this manifold.
    */

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.