]> https://gitweb.dealii.org/ - dealii.git/commitdiff
parallel mg: clean up debug output, add additional checks
authorTimo Heister <timo.heister@gmail.com>
Mon, 9 Sep 2013 21:36:28 +0000 (21:36 +0000)
committerTimo Heister <timo.heister@gmail.com>
Mon, 9 Sep 2013 21:36:28 +0000 (21:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@30662 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_handler_policy.cc

index 4f6f4d09279f14e2b79fa911488ad9a9bacdf0e0..3db4b2104af7c2a615ae8f7bd831618b466a4b93 100644 (file)
@@ -1230,14 +1230,7 @@ namespace internal
                           dealii::types::subdomain_id dest = child->subdomain_id();
                           Assert(dest != dealii::numbers::artificial_subdomain_id, ExcInternalError());
                           if (dest != tria.locally_owned_subdomain())
-                            {
-                              if (send_to.find(dest) == send_to.end())
-                                {
-                                  std::cout << "********" << std::endl;
-                                }
-                              send_to.insert(dest);
-
-                            }
+                            send_to.insert(dest);
                         }
 
                     }
@@ -1840,6 +1833,10 @@ namespace internal
               MPI_Get_count(&status, MPI_BYTE, &len);
               receive.resize(len);
 
+#ifdef DEBUG
+              Assert(senders.find(status.MPI_SOURCE)!=senders.end(), ExcInternalError());
+#endif
+
               char *ptr = &receive[0];
               MPI_Recv(ptr, len, MPI_BYTE, status.MPI_SOURCE, status.MPI_TAG,
                        tr->get_communicator(), &status);
@@ -1895,8 +1892,8 @@ namespace internal
             unsigned int sent=needs_to_get_cells.size();
             unsigned int recv=senders.size();
 
-            MPI_Reduce(&sent, &sum_send, 1, MPI_UNSIGNED, MPI_SUM, 0, tr->get_communicator());
-            MPI_Reduce(&recv, &sum_recv, 1, MPI_UNSIGNED, MPI_SUM, 0, tr->get_communicator());
+            MPI_Reduce(&sent, &sum_send, 1, MPI_UNSIGNED, MPI_SUM, 56345, tr->get_communicator());
+            MPI_Reduce(&recv, &sum_recv, 1, MPI_UNSIGNED, MPI_SUM, 56346, tr->get_communicator());
             Assert(sum_send==sum_recv, ExcInternalError());
           }
 #endif

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.