Skip to content

Commit e0532fd

Browse files
committed
Revert "Don't write to hyperedges"
This reverts commit 509221b.
1 parent 00aaf90 commit e0532fd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dccrg.hpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11458,7 +11458,7 @@ template <
1145811458
return;
1145911459
}
1146011460

11461-
sizes[i] = dccrg_instance->get_communication_weight(i);
11461+
sizes[i] = dccrg_instance->get_communication_weight(cell);
1146211462
}
1146311463
}
1146411464

@@ -11647,10 +11647,13 @@ template <
1164711647
return;
1164811648
}
1164911649

11650-
for (int i = 0; i < dccrg_instance->cell_data.size(); ++i) {
11650+
int i = 0;
11651+
for (const auto& item : dccrg_instance->cell_data) {
11652+
hyperedges[i] = item.first;
1165111653
if (number_of_weights_per_hyperedge) {
11652-
hyperedge_weights[i] = dccrg_instance->get_communication_weight(i);
11654+
hyperedge_weights[i] = dccrg_instance->get_communication_weight(item.first);
1165311655
}
11656+
++i;
1165411657
}
1165511658
}
1165611659

0 commit comments

Comments
 (0)