]> https://gitweb.dealii.org/ - dealii.git/commitdiff
test empty BlockIndices
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 9 Nov 2000 18:02:17 +0000 (18:02 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 9 Nov 2000 18:02:17 +0000 (18:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@3476 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/block_vector.cc

index 14fbc39595a3ee3cbeb32597770a8e2b77d9ee4d..0736abedf1bd3e3c6b221b98848fb5c4d93d9d27 100644 (file)
@@ -35,7 +35,18 @@ void test ()
   
   BlockIndices i1(ivector);
   BlockIndices i2 = i1;
-  BlockIndices i3(0);
+  BlockIndices i3;
+                                  // no output expected here
+  deallog.push("empty constructor");
+  for (unsigned int i=0 ; i<i3.size() ; ++i)
+    deallog << i << '\t' << i3.local_to_global(i,0) << endl;
+  for (unsigned int i=0 ; i<i3.total_size() ; ++i)
+    deallog << i
+           << '\t' << i3.global_to_local(i).first
+           << '\t' << i3.global_to_local(i).second
+           << endl;
+  deallog.pop();
+
   i3.reinit(ivector);
 
   deallog.push("global->local");

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.