From 277aec4f856cf7b8dc37ee22b1b9380fcd81de7d Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Mon, 20 Feb 2006 17:13:49 +0000 Subject: [PATCH] inherit vectors from Subscriptor git-svn-id: https://svn.dealii.org/trunk@12428 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/block_vector_base.h | 4 +++- deal.II/lac/include/lac/vector.h | 4 +++- deal.II/lac/include/lac/vector.templates.h | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/deal.II/lac/include/lac/block_vector_base.h b/deal.II/lac/include/lac/block_vector_base.h index 494612efdd..07d4682b89 100644 --- a/deal.II/lac/include/lac/block_vector_base.h +++ b/deal.II/lac/include/lac/block_vector_base.h @@ -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 #include +#include #include #include @@ -656,6 +657,7 @@ namespace internal */ template class BlockVectorBase + : public Subscriptor { public: /** diff --git a/deal.II/lac/include/lac/vector.h b/deal.II/lac/include/lac/vector.h index 90b4bf10ca..23d0d63c24 100644 --- a/deal.II/lac/include/lac/vector.h +++ b/deal.II/lac/include/lac/vector.h @@ -16,6 +16,7 @@ #include #include +#include #include @@ -55,7 +56,8 @@ template class LAPACKFullMatrix; * @author Guido Kanschat, Franz-Theo Suttmeier, Wolfgang Bangerth */ template -class Vector +class Vector : + public Subscriptor { public: /** diff --git a/deal.II/lac/include/lac/vector.templates.h b/deal.II/lac/include/lac/vector.templates.h index d0e38e31c0..0c4411486a 100644 --- a/deal.II/lac/include/lac/vector.templates.h +++ b/deal.II/lac/include/lac/vector.templates.h @@ -53,7 +53,7 @@ namespace internal template Vector::Vector (const Vector& v) - : + : Subscriptor(), vec_size(v.size()), max_vec_size(v.size()), val(0) @@ -72,7 +72,7 @@ Vector::Vector (const Vector& v) template template Vector::Vector (const Vector& v) - : + : Subscriptor(), vec_size(v.size()), max_vec_size(v.size()), val(0) @@ -91,7 +91,7 @@ Vector::Vector (const Vector& v) template Vector::Vector (const PETScWrappers::Vector &v) - : + : Subscriptor(), vec_size(v.size()), max_vec_size(v.size()), val(0) @@ -120,7 +120,7 @@ Vector::Vector (const PETScWrappers::Vector &v) template Vector::Vector (const PETScWrappers::MPI::Vector &v) - : + : Subscriptor(), vec_size(0), max_vec_size(0), val(0) -- 2.39.5