]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do the test the comment at the top of the file actually suggests. 3000/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 22 Aug 2016 22:56:10 +0000 (16:56 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 22 Aug 2016 22:56:10 +0000 (16:56 -0600)
tests/bits/block_vector_vector_01.cc

index 5051ca711911cb6069730fb177d49cf4fe1bf390..0e5f6ae01abaabd1aa111a1fa125a9cef4a1d022 100644 (file)
@@ -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.
 //
 // 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)

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.