]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Let 'attach_data_01' consider case with more procs than cells. 6881/head
authorMarc Fehling <marc.fehling@gmx.net>
Wed, 4 Jul 2018 00:06:19 +0000 (18:06 -0600)
committerMarc Fehling <m.fehling@fz-juelich.de>
Wed, 4 Jul 2018 00:52:17 +0000 (18:52 -0600)
tests/mpi/attach_data_01.cc
tests/mpi/attach_data_01.mpirun=8.output [new file with mode: 0644]

index c96c28a64fb0bcd595b5d574f1d7ee603da06942..a91f3d207e2974b91fe4ad9c593fcf781b48f15c 100644 (file)
@@ -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 (file)
index 0000000..620362e
--- /dev/null
@@ -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
+

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.