]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
changing the destructor, the reinit(), reinit(1) and clear() to virtual
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Feb 1999 18:05:38 +0000 (18:05 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Feb 1999 18:05:38 +0000 (18:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@778 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/dsmatrix.h

index 0bba9907d01b02dc5fef542efb805a59957d8beb..e08e21ccd4c8b4aab9968d215399ad6ef05647cd 100644 (file)
@@ -402,7 +402,7 @@ class dSMatrix
                                      * release the memory of the sparsity
                                      * structure.
                                      */
-    ~dSMatrix ();
+    virtual ~dSMatrix ();
     
 
                                     /**
@@ -420,7 +420,7 @@ class dSMatrix
                                      * dimensions are zero), then all memory
                                      * is freed.
                                      */
-    void reinit ();
+    virtual void reinit ();
 
                                     /**
                                      * Reinitialize the sparse matrix with the
@@ -437,7 +437,7 @@ class dSMatrix
                                      * long as #reinit# is not called with a
                                      * new sparsity structure.
                                      */
-    void reinit (const dSMatrixStruct &sparsity);
+    virtual void reinit (const dSMatrixStruct &sparsity);
 
                                     /**
                                      * Release all memory and return to a state
@@ -446,7 +446,7 @@ class dSMatrix
                                      * sparsity pattern it was previously tied
                                      * to.
                                      */
-    void clear ();
+    virtual void clear ();
     
                                     /**
                                      * Return the dimension of the image space.

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.