From cc15f3c5efe7c624ccb169ef8a3adfbac4dbcf4a Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 21 Aug 2018 18:28:34 +0200 Subject: [PATCH] add a note why we have zeros in first_index --- source/base/partitioner.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/base/partitioner.cc b/source/base/partitioner.cc index 8a12409ddd..84d3b73f19 100644 --- a/source/base/partitioner.cc +++ b/source/base/partitioner.cc @@ -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; -- 2.39.5