From: Marc Fehling Date: Wed, 4 Jul 2018 00:06:19 +0000 (-0600) Subject: Let 'attach_data_01' consider case with more procs than cells. X-Git-Tag: v9.1.0-rc1~960^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6881%2Fhead;p=dealii.git Let 'attach_data_01' consider case with more procs than cells. --- diff --git a/tests/mpi/attach_data_01.cc b/tests/mpi/attach_data_01.cc index c96c28a64f..a91f3d207e 100644 --- a/tests/mpi/attach_data_01.cc +++ b/tests/mpi/attach_data_01.cc @@ -122,15 +122,13 @@ test() for (cell = tr.begin_active(); cell != tr.end(); ++cell) { - if (cell->id().to_string() == "0_1:0") - { - cell->set_refine_flag(); - } - else if (cell->parent()->id().to_string() == "3_0:") - cell->set_coarsen_flag(); - if (cell->is_locally_owned()) { + if (cell->id().to_string() == "0_1:0") + cell->set_refine_flag(); + else if (cell->parent()->id().to_string() == "3_0:") + cell->set_coarsen_flag(); + deallog << "myid=" << myid << " cellid=" << cell->id(); if (cell->coarsen_flag_set()) deallog << " coarsening" << std::endl; diff --git a/tests/mpi/attach_data_01.mpirun=8.output b/tests/mpi/attach_data_01.mpirun=8.output new file mode 100644 index 0000000000..620362e819 --- /dev/null +++ b/tests/mpi/attach_data_01.mpirun=8.output @@ -0,0 +1,97 @@ + +DEAL:0::cells before: 16 +DEAL:0::myid=0 cellid=0_1:0 refining +DEAL:0::myid=0 cellid=0_1:1 +DEAL:0::myid=0 cellid=0_1:2 +DEAL:0::myid=0 cellid=0_1:3 +DEAL:0::handle=0 +DEAL:0::packing cell 0_1:0 with data=0 status=REFINE +DEAL:0::packing cell 0_1:1 with data=1 status=PERSIST +DEAL:0::packing cell 0_1:2 with data=2 status=PERSIST +DEAL:0::packing cell 0_1:3 with data=3 status=PERSIST +DEAL:0::cells after: 16 +DEAL:0::unpacking cell 0_1:0 with data=0 status=REFINE +DEAL:0::Checksum: 2822439380 +DEAL:0::OK + +DEAL:1::cells before: 16 +DEAL:1::handle=0 +DEAL:1::cells after: 16 +DEAL:1::Checksum: 0 +DEAL:1::OK + + +DEAL:2::cells before: 16 +DEAL:2::myid=2 cellid=1_1:0 +DEAL:2::myid=2 cellid=1_1:1 +DEAL:2::myid=2 cellid=1_1:2 +DEAL:2::myid=2 cellid=1_1:3 +DEAL:2::handle=0 +DEAL:2::packing cell 1_1:0 with data=0 status=PERSIST +DEAL:2::packing cell 1_1:1 with data=1 status=PERSIST +DEAL:2::packing cell 1_1:2 with data=2 status=PERSIST +DEAL:2::packing cell 1_1:3 with data=3 status=PERSIST +DEAL:2::cells after: 16 +DEAL:2::unpacking cell 0_1:1 with data=1 status=PERSIST +DEAL:2::unpacking cell 0_1:2 with data=2 status=PERSIST +DEAL:2::Checksum: 0 +DEAL:2::OK + + +DEAL:3::cells before: 16 +DEAL:3::handle=0 +DEAL:3::cells after: 16 +DEAL:3::unpacking cell 0_1:3 with data=3 status=PERSIST +DEAL:3::Checksum: 0 +DEAL:3::OK + + +DEAL:4::cells before: 16 +DEAL:4::myid=4 cellid=2_1:0 +DEAL:4::myid=4 cellid=2_1:1 +DEAL:4::myid=4 cellid=2_1:2 +DEAL:4::myid=4 cellid=2_1:3 +DEAL:4::handle=0 +DEAL:4::packing cell 2_1:0 with data=0 status=PERSIST +DEAL:4::packing cell 2_1:1 with data=1 status=PERSIST +DEAL:4::packing cell 2_1:2 with data=2 status=PERSIST +DEAL:4::packing cell 2_1:3 with data=3 status=PERSIST +DEAL:4::cells after: 16 +DEAL:4::unpacking cell 1_1:0 with data=0 status=PERSIST +DEAL:4::unpacking cell 1_1:1 with data=1 status=PERSIST +DEAL:4::unpacking cell 1_1:2 with data=2 status=PERSIST +DEAL:4::unpacking cell 1_1:3 with data=3 status=PERSIST +DEAL:4::Checksum: 0 +DEAL:4::OK + + +DEAL:5::cells before: 16 +DEAL:5::handle=0 +DEAL:5::cells after: 16 +DEAL:5::Checksum: 0 +DEAL:5::OK + + +DEAL:6::cells before: 16 +DEAL:6::myid=6 cellid=3_1:0 coarsening +DEAL:6::myid=6 cellid=3_1:1 coarsening +DEAL:6::myid=6 cellid=3_1:2 coarsening +DEAL:6::myid=6 cellid=3_1:3 coarsening +DEAL:6::handle=0 +DEAL:6::packing cell 3_0: with data=0 status=COARSEN +DEAL:6::cells after: 16 +DEAL:6::unpacking cell 2_1:0 with data=0 status=PERSIST +DEAL:6::unpacking cell 2_1:1 with data=1 status=PERSIST +DEAL:6::unpacking cell 2_1:2 with data=2 status=PERSIST +DEAL:6::unpacking cell 2_1:3 with data=3 status=PERSIST +DEAL:6::Checksum: 0 +DEAL:6::OK + + +DEAL:7::cells before: 16 +DEAL:7::handle=0 +DEAL:7::cells after: 16 +DEAL:7::unpacking cell 3_0: with data=0 status=COARSEN +DEAL:7::Checksum: 0 +DEAL:7::OK +