]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix another place where we should use MPI_Allreduce instead of MPI_Reduce
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Jan 2014 14:44:40 +0000 (14:44 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Jan 2014 14:44:40 +0000 (14:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@32279 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_handler_policy.cc

index c8bb6d84f0abd7a4d297dc2061047123287a431e..2dd018b6d21705ed9941e971da9f422ceea8424b 100644 (file)
@@ -1648,8 +1648,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_Allreduce(&sent, &sum_send, 1, MPI_UNSIGNED, MPI_SUM, tr->get_communicator());
+            MPI_Allreduce(&recv, &sum_recv, 1, MPI_UNSIGNED, MPI_SUM, 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.