From b2791acc2a7344a3744bcdb14518c83db9126c7b Mon Sep 17 00:00:00 2001 From: heister Date: Mon, 27 May 2013 09:27:45 +0000 Subject: [PATCH] adding test that shows broken ConstraintMatrix::distribute() git-svn-id: https://svn.dealii.org/trunk@29635 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/mpi/trilinos_distribute_04.cc | 13 ++++--- .../trilinos_distribute_04/ncpu_1/cmp/generic | 35 +++++++++++++++++++ 2 files changed, 43 insertions(+), 5 deletions(-) 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 -- 2.39.5