From 3ab186dd95e25987a67bdc72653bf60a25eb8eb8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth 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 +#include #include #include -void test (Vector &v) +void test (BlockVector &v) { for (unsigned int i=0; i w(v); + BlockVector w(v); AssertThrow (w==v, ExcInternalError()); @@ -48,7 +48,8 @@ int main () try { - Vector v (100); + std::vector block_sizes(2, 50); + BlockVector v (block_sizes); test (v); } catch (std::exception &exc) -- 2.39.5