From a89d90f9993ee9ad39e492af466b3595c06c3e25 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Mon, 24 Dec 2018 03:06:19 +0100 Subject: [PATCH] Added default destructor to la::p::BlockVector. --- include/deal.II/lac/la_parallel_block_vector.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/deal.II/lac/la_parallel_block_vector.h b/include/deal.II/lac/la_parallel_block_vector.h index 4ad684f771..bd607b34b2 100644 --- a/include/deal.II/lac/la_parallel_block_vector.h +++ b/include/deal.II/lac/la_parallel_block_vector.h @@ -179,6 +179,16 @@ namespace LinearAlgebra BlockVector(const std::vector &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. -- 2.39.5