]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
adding test that shows broken ConstraintMatrix::distribute()
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 May 2013 09:27:45 +0000 (09:27 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 May 2013 09:27:45 +0000 (09:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@29635 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/trilinos_distribute_04.cc
tests/mpi/trilinos_distribute_04/ncpu_1/cmp/generic

index 8d8c04654cf04e5c5573fb2bd43dbf821bb15879..a96b514723e35f038db71244b00abb26dc7d6837 100644 (file)
@@ -85,12 +85,15 @@ void test()
     vec(i) = i;
   vec.compress(VectorOperation::insert);
 
-  deallog <<"--" << std::endl;
-  solution.locally_owned_elements().print(deallog);
-  deallog <<"--" << std::endl;
+  deallog <<"locally owned:" << std::endl;
+  vec.locally_owned_elements().print(deallog);
+  deallog <<"relevant set:" << std::endl;
   locally_relevant_set.print(deallog);
-  deallog <<"--" << std::endl;
-  constraints.print(deallog);
+  if (myid==0)
+    {
+      deallog <<"constraint_matrix:" << std::endl;
+      cm.print(deallog.get_file_stream());
+    }
   
   cm.distribute (vec);
 
index be8d055f86cdd3679faaa1b80a853068ea304944..41cc676026f57526a4a0f85affa864fada949a29 100644 (file)
@@ -1,2 +1,37 @@
 
+DEAL:0::locally owned:
+DEAL:0::{[0,44]}
+DEAL:0::relevant set:
+DEAL:0::{[0,44]}
+DEAL:0::constraint_matrix:
+    0 = 0
+    1 = 0
+    2 = 0
+    4 = 0
+    6 = 0
+    8 = 0
+    12 = 0
+    13 = 0
+    14 = 0
+    17 = 0
+    18 = 0
+    19 = 0
+    20 = 0
+    21 3:  0.500000
+    21 5:  0.500000
+    22 3:  0.500000
+    22 7:  0.500000
+    25 7:  0.500000
+    25 10:  0.500000
+    26 = 0
+    27 5:  0.500000
+    29 = 0
+    33 = 0
+    35 = 0
+    36 = 0
+    38 = 0
+    41 10:  0.500000
+    41 15:  0.500000
+    43 = 0
+    44 15:  0.500000
 DEAL:0::OK

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.