]> https://gitweb.dealii.org/ - dealii.git/commitdiff
inherit vectors from Subscriptor
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 20 Feb 2006 17:13:49 +0000 (17:13 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 20 Feb 2006 17:13:49 +0000 (17:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@12428 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 494612efdd47f481513d5098df63827b555647bc..07d4682b8923a2a850c10a97d8cb60967af9069a 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2006 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -16,6 +16,7 @@
 
 #include <base/config.h>
 #include <base/exceptions.h>
+#include <base/subscriptor.h>
 #include <lac/exceptions.h>
 #include <lac/block_indices.h>
 
@@ -656,6 +657,7 @@ namespace internal
  */
 template <class VectorType>
 class BlockVectorBase
+  : public Subscriptor
 {
   public:
                                      /**
index 90b4bf10cae3b3f94e559ded37dcd8a724c48047..23d0d63c24423249e2f36657c0fa62e74a86e58f 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <base/config.h>
 #include <base/exceptions.h>
+#include <base/subscriptor.h>
 
 #include <cstdio>
 
@@ -55,7 +56,8 @@ template<typename number> class LAPACKFullMatrix;
  * @author Guido Kanschat, Franz-Theo Suttmeier, Wolfgang Bangerth
  */
 template <typename Number>
-class Vector
+class Vector :
+  public Subscriptor
 {
   public:
                                     /**
index d0e38e31c0d6a8c95ce46f0fd295ecc127600e07..0c4411486af66a45826fd8fe3d73ac8255168712 100644 (file)
@@ -53,7 +53,7 @@ namespace internal
 
 template <typename Number>
 Vector<Number>::Vector (const Vector<Number>& v)
-                :
+                : Subscriptor(),
                vec_size(v.size()),
                max_vec_size(v.size()),
                val(0)
@@ -72,7 +72,7 @@ Vector<Number>::Vector (const Vector<Number>& v)
 template <typename Number>
 template <typename OtherNumber>
 Vector<Number>::Vector (const Vector<OtherNumber>& v)
-                :
+                : Subscriptor(),
                vec_size(v.size()),
                max_vec_size(v.size()),
                val(0)
@@ -91,7 +91,7 @@ Vector<Number>::Vector (const Vector<OtherNumber>& v)
 
 template <typename Number>
 Vector<Number>::Vector (const PETScWrappers::Vector &v)
-                :
+                : Subscriptor(),
                vec_size(v.size()),
                max_vec_size(v.size()),
                val(0)
@@ -120,7 +120,7 @@ Vector<Number>::Vector (const PETScWrappers::Vector &v)
 
 template <typename Number>
 Vector<Number>::Vector (const PETScWrappers::MPI::Vector &v)
-                :
+                : Subscriptor(),
                vec_size(0),
                max_vec_size(0),
                val(0)

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.