]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
new clear function in BlockMatrixArray
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 11 Mar 2002 20:20:01 +0000 (20:20 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 11 Mar 2002 20:20:01 +0000 (20:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@5563 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_matrix_array.h

index 99da07241b270a2294ab48c6f77121f2b2ef7249..b04f15bd37284e3bbbdb46706b246bfa1fbd9619 100644 (file)
@@ -77,6 +77,11 @@ class BlockMatrixArray : public Subscriptor
                double prefix = 1.,
                bool transpose = false);
 
+                                    /**
+                                     * Delete all entries
+                                     */
+    void clear();
+    
                                     /**
                                      * Number of block-entries per
                                      * column.
@@ -284,6 +289,7 @@ class BlockTrianglePrecondition : private BlockMatrixArray<MATRIX>
                                      * Make function of base class available.
                                      */
     BlockMatrixArray<MATRIX>::n_block_cols;
+    BlockMatrixArray<MATRIX>::clear;
     BlockMatrixArray<MATRIX>::Subscriptor::subscribe;
     BlockMatrixArray<MATRIX>::Subscriptor::unsubscribe;
 
@@ -353,6 +359,15 @@ BlockMatrixArray<MATRIX>::enter (const MATRIX& matrix,
 
 
 
+template <class MATRIX>
+inline
+void
+BlockMatrixArray<MATRIX>::clear ()
+{
+  entries.clear();
+}
+
+
 template <class MATRIX>
 template <class number>
 inline

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.