]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make bit_vector a vector<bool>.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 18 Jul 1999 21:21:27 +0000 (21:21 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 18 Jul 1999 21:21:27 +0000 (21:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@1589 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_vanka.h
deal.II/lac/include/lac/sparse_vanka.templates.h

index 377b13b6df02c609e522cf397635830cad5e177e..3f8265e8b5bc41398597ffb0b8ea50d05ee7e348 100644 (file)
@@ -10,9 +10,9 @@
 #include <base/smartpointer.h>
 #include <lac/forward-declarations.h>
 
-#include <bvector.h>
 #include <vector>
 
+
 /**
  * Point-wise Vanka preconditioning.
  * This class does Vanka preconditioning  on a point-wise base.
@@ -100,8 +100,9 @@ class SparseVanka
                                      * object. The same is true for
                                      * the matrix.
                                      */
-    SparseVanka(const SparseMatrix<number>& M,
-               const bit_vector& selected);
+    SparseVanka(const SparseMatrix<number> &M,
+               const vector<bool>         &selected);
+    
                                     /**
                                      * Destructor.
                                      * Delete all allocated matrices.
@@ -168,11 +169,13 @@ class SparseVanka
                                      * Indices of Lagrange
                                      * multipliers.
                                      */
-    const bit_vector& selected;
+    const vector<bool> &selected;
+    
                                     /**
                                      * Conserve memory flag.
                                      */
     bool conserve_mem;
+    
                                     /**
                                      * Array of inverse matrices,
                                      * one for each degree of freedom.
index 8a9b24c6312fc35a64d9ee907e23068335fda7b2..2e6ede0d2a8242435ba44c6ecb86ac73a0be91b7 100644 (file)
@@ -12,7 +12,7 @@
 
 template<typename number>
 SparseVanka<number>::SparseVanka(const SparseMatrix<number> &M,
-                                const bit_vector           &selected)
+                                const vector<bool>         &selected)
                :
                matrix(&M),
                selected(selected),

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.