From 97cab950ce82d3365ef66653e102e283bf53d4de Mon Sep 17 00:00:00 2001 From: heister Date: Thu, 1 Aug 2013 19:31:36 +0000 Subject: [PATCH] fix test git-svn-id: https://svn.dealii.org/trunk@30205 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/mpi/distribute_sp_02.cc | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tests/mpi/distribute_sp_02.cc b/tests/mpi/distribute_sp_02.cc index 6c1f92138a..86669bd569 100644 --- a/tests/mpi/distribute_sp_02.cc +++ b/tests/mpi/distribute_sp_02.cc @@ -42,9 +42,9 @@ void test_mpi() unsigned int num_local=10; unsigned int n=numprocs*num_local; - std::vector rows_per_cpu; + std::vector locally_owned_dofs_per_cpu(numprocs, IndexSet(n)); for (unsigned int i=0; i(csp, - rows_per_cpu, + locally_owned_dofs_per_cpu, MPI_COMM_WORLD, locally_rel); /* { @@ -96,6 +96,8 @@ void test_mpi() Assert(csp.exists(indx, myid+1), ExcInternalError()); } + + //now a 2x2 block system where the 2,2 block has size 1x1: if (myid==0) deallog << "part 2" << std::endl; @@ -104,13 +106,18 @@ void test_mpi() bla.add_index(0); partitioning.push_back(bla); - + csp.reinit(partitioning); for (unsigned int i=0; i locally_owned_dofs_per_cpu2(numprocs, IndexSet(n)); + for (unsigned int i=0; i(csp, - rows_per_cpu, + locally_owned_dofs_per_cpu2, MPI_COMM_WORLD, locally_rel); -- 2.39.5