Use bool, not int, to also add inactive wells to rank 0...

This commit is contained in:
Vegard Kippe
2024-10-21 15:30:50 +02:00
parent 09ebfbf3e3
commit 729d3c2a59

View File

@@ -235,7 +235,7 @@ doLoadBalance_(const Dune::EdgeWeightMethod edgeWeightsMethod,
for (const auto& well_name : inactive_well_names) { for (const auto& well_name : inactive_well_names) {
for (int i=0; i<nranks; ++i) { for (int i=0; i<nranks; ++i) {
if (well_on_rank_global[i*num_wells + well_idx]) { if (well_on_rank_global[i*num_wells + well_idx]) {
parallelWells.emplace_back(well_name, i); parallelWells.emplace_back(well_name, true);
} }
} }
++well_idx; ++well_idx;