]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix Utilities::MPI::compute_point_to_point_communication_pattern 6935/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 19 Jul 2018 17:00:34 +0000 (19:00 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 19 Jul 2018 17:02:45 +0000 (19:02 +0200)
source/base/mpi.cc

index 81d3b3aaf59bed8b912e00a035c5ee4d8f5c0f2c..88ab64ce44fee5745b3f3f8caa64ebdad9262d48 100644 (file)
@@ -198,10 +198,10 @@ namespace Utilities
         }
 
 #  if DEAL_II_MPI_VERSION_GTE(2, 2)
-      // Get a binary vector from the `destinations`
+      // Calculate the number of messages to send to each process
       std::vector<unsigned int> dest_vector(n_procs);
       for (const auto &el : destinations)
-        dest_vector[el] = 1;
+        ++dest_vector[el];
 
       // Find how many processes will send to this one
       // by reducing with sum and then scattering the

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.