From: Timo Heister Date: Thu, 1 Aug 2013 19:31:36 +0000 (+0000) Subject: fix test X-Git-Tag: v8.1.0~1163 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b6489909233dddd6d09cc63d86e5c480768a943;p=dealii.git fix test git-svn-id: https://svn.dealii.org/trunk@30205 0785d39b-7218-0410-832d-ea1e28bc413d --- 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);