From: Timo Heister Date: Mon, 27 May 2013 09:27:45 +0000 (+0000) Subject: adding test that shows broken ConstraintMatrix::distribute() X-Git-Tag: v8.0.0~402 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50581691b60d1bebe77c17c83395c6577008dfb0;p=dealii.git adding test that shows broken ConstraintMatrix::distribute() git-svn-id: https://svn.dealii.org/trunk@29635 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/mpi/trilinos_distribute_04.cc b/tests/mpi/trilinos_distribute_04.cc index 8d8c04654c..a96b514723 100644 --- a/tests/mpi/trilinos_distribute_04.cc +++ b/tests/mpi/trilinos_distribute_04.cc @@ -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); diff --git a/tests/mpi/trilinos_distribute_04/ncpu_1/cmp/generic b/tests/mpi/trilinos_distribute_04/ncpu_1/cmp/generic index be8d055f86..41cc676026 100644 --- a/tests/mpi/trilinos_distribute_04/ncpu_1/cmp/generic +++ b/tests/mpi/trilinos_distribute_04/ncpu_1/cmp/generic @@ -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