]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make destructor virtual.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 12 Dec 1999 13:11:56 +0000 (13:11 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 12 Dec 1999 13:11:56 +0000 (13:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@2043 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/vector.h

index 6bdcaeb6e31702fde827a09f640595f7a7425f53..bf80c73775527647aa945b2b1266a0f5c49ba9b5 100644 (file)
 
 /**
  *  Vector of data. 
- *  Memory for Components is supplied explicitly <p>
- *  ( ! Amount of memory needs not to comply with actual dimension due to reinitializations ! ) <p>
- *  - all necessary methods for Vectors are supplied <p>
- *  - operators available are `=` , `*` and `( )` <p>
- *  CONVENTIONS for used `equations` : <p>
- *  - THIS vector is always named `U` <p>
- *  - vectors are always uppercase , scalars are lowercase
  *
  * @author Roland Becker, Guido Kanschat, Franz-Theo Suttmeier, revised and extended by Wolfgang Bangerth, documented by Klaus Mampel and Wolfgang Bangerth
  */
@@ -86,9 +79,12 @@ class Vector {
     Vector (const unsigned int n);
     
                                     /**
-                                     * Destructor. Clears memory
+                                     * Destructor, deallocates
+                                     * memory. Made virtual to allow
+                                     * for derived classes to behave
+                                     * properly.
                                      */
-    ~Vector ();
+    virtual ~Vector ();
 
                                     /**
                                      * Set all entries to zero. Equivalent to

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.