]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add virtual constructor
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Sep 2010 21:46:37 +0000 (21:46 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Sep 2010 21:46:37 +0000 (21:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@22123 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/precondition_block.templates.h
deal.II/lac/include/lac/precondition_block_base.h
deal.II/lac/source/precondition_block.inst.in

index 4ad3844a75fbf395c5eae7422c3f8a913a33bcd9..0fb19a7c70801e20d1c5adfdf1ee2c4dbb984733 100644 (file)
 DEAL_II_NAMESPACE_OPEN
 
 
+template <typename number>
+PreconditionBlockBase<number>::~PreconditionBlockBase ()
+{}
+
+
 template <class MATRIX, typename inverse_type>
 PreconditionBlock<MATRIX,inverse_type>::PreconditionBlock (bool store)
                : PreconditionBlockBase<inverse_type>(store),
index 18e791ef7df807d281dfa0b369f6c05e79776f6c..b7962bd7fb1ec5a9da62cc5d9e03dcc96086a68c 100644 (file)
@@ -56,6 +56,11 @@ class PreconditionBlockBase
                                      */
     PreconditionBlockBase(bool store_diagonals = false);
 
+                                    /**
+                                     * The virtual destructor
+                                     */
+    ~PreconditionBlockBase();
+    
                                     /**
                                      * Deletes the inverse diagonal
                                      * block matrices if existent hence
index c31278df131fca0adbdf6b6d9c9de780789a49cd..0f601bcfa6a5fd2283853b59c9265ef21b42a40a 100644 (file)
@@ -1,8 +1,7 @@
 //---------------------------------------------------------------------------
 //    $Id$
-//    Version: $Name$
 //
-//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007, 2009 by the deal.II authors
+//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007, 2009, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
 //---------------------------------------------------------------------------
 
 
+for (S : REAL_SCALARS)
+  {
+    template class PreconditionBlockBase<S>;
+  }
+
+
 for (S1, S2 : REAL_SCALARS)
   {
     template class PreconditionBlock<SparseMatrix<S1>, S2>;

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.