mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use bool, not int, to also add inactive wells to rank 0...
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user