From 3ab186dd95e25987a67bdc72653bf60a25eb8eb8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth <bangerth@colostate.edu> Date: Mon, 22 Aug 2016 16:56:10 -0600 Subject: [PATCH] Do the test the comment at the top of the file actually suggests. --- tests/bits/block_vector_vector_01.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/bits/block_vector_vector_01.cc b/tests/bits/block_vector_vector_01.cc index 5051ca7119..0e5f6ae01a 100644 --- a/tests/bits/block_vector_vector_01.cc +++ b/tests/bits/block_vector_vector_01.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2004 - 2015 by the deal.II authors +// Copyright (C) 2004 - 2016 by the deal.II authors // // This file is part of the deal.II library. // @@ -22,16 +22,16 @@ // now autoconf'ed. #include "../tests.h" -#include <deal.II/lac/vector.h> +#include <deal.II/lac/block_vector.h> #include <fstream> #include <iomanip> -void test (Vector<double> &v) +void test (BlockVector<double> &v) { for (unsigned int i=0; i<v.size(); ++i) v(i) = i+1.; - Vector<float> w(v); + BlockVector<float> w(v); AssertThrow (w==v, ExcInternalError()); @@ -48,7 +48,8 @@ int main () try { - Vector<double> v (100); + std::vector<unsigned int> block_sizes(2, 50); + BlockVector<double> v (block_sizes); test (v); } catch (std::exception &exc) -- 2.39.5