]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added default destructor to la::p::BlockVector. 7549/head
authorMarc Fehling <marc.fehling@gmx.net>
Mon, 24 Dec 2018 02:06:19 +0000 (03:06 +0100)
committerMarc Fehling <marc.fehling@gmx.net>
Mon, 24 Dec 2018 12:49:01 +0000 (13:49 +0100)
include/deal.II/lac/la_parallel_block_vector.h

index 4ad684f7711da3271955bb6430af14893a13f9e4..bd607b34b219cc458bbaf0b135b4e51df0eff01d 100644 (file)
@@ -179,6 +179,16 @@ namespace LinearAlgebra
       BlockVector(const std::vector<IndexSet> &local_ranges,
                   const MPI_Comm               communicator);
 
+      /**
+       * Destructor.
+       *
+       * @note We need to explicitly provide a destructor, otherwise the
+       *   linker may think it is unused and discards it, although required
+       *   in a different section. The Intel compiler is prone to this
+       *   behavior.
+       */
+      virtual ~BlockVector() override = default;
+
       /**
        * Copy operator: fill all components of the vector with the given
        * scalar value.

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.