Skip to content

Commit 4d335a8

Browse files
committed
Fix bug for more than 53 ranks
1 parent a55e3d2 commit 4d335a8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

core/distributed/preconditioner/bddc.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,9 +1484,10 @@ void Bddc<ValueType, LocalIndexType, GlobalIndexType>::generate(
14841484
unique_labels.get_const_data() + i * width + j,
14851485
sizeof(uint_type));
14861486
for (size_type k = 0; k < n_significand_bits; k++) {
1487-
if ((k != comm.rank()) &&
1487+
auto rank_idx = j * n_significand_bits + k;
1488+
if ((rank_idx != comm.rank()) &&
14881489
(int_key & (uint_type)1 << k)) {
1489-
other = j * n_significand_bits + k;
1490+
other = rank_idx;
14901491
found = true;
14911492
}
14921493
}

0 commit comments

Comments
 (0)