]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add a note why we have zeros in first_index
authorDenis Davydov <davydden@gmail.com>
Tue, 21 Aug 2018 16:28:34 +0000 (18:28 +0200)
committerDenis Davydov <davydden@gmail.com>
Tue, 21 Aug 2018 16:28:34 +0000 (18:28 +0200)
source/base/partitioner.cc

index 8a12409dddfb5c03a1c8e0de24db7682d8dcd681..84d3b73f19108a6948a94184e6f4e433665d7ac9 100644 (file)
@@ -212,7 +212,9 @@ namespace Utilities
       first_index[n_procs] = global_size;
 
       // fix case when there are some processors without any locally owned
-      // indices: then there might be a zero in some entries
+      // indices: then there might be a zero in some entries. The reason
+      // is that local_range_data will contain [0,0) and second indix is
+      // incorrect inside the Allgather'ed first_index.
       if (global_size > 0)
         {
           unsigned int first_proc_with_nonzero_dofs = 0;

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.