In partitioning, only account for wells that will be active at some point in the simulation.

This commit is contained in:
Vegard Kippe 2024-09-13 14:32:22 +02:00
parent b886d4e4ae
commit 7ee218b1e2
2 changed files with 2 additions and 2 deletions

View File

@ -949,7 +949,7 @@ private:
const auto need_wells = param.local_domain_partition_method_ == "zoltan";
const auto wells = need_wells
? this->model_.simulator().vanguard().schedule().getWellsatEnd()
? this->model_.simulator().vanguard().schedule().getActiveWellsatEnd()
: std::vector<Well>{};
const auto& possibleFutureConnectionSet = need_wells

View File

@ -194,7 +194,7 @@ doLoadBalance_(const Dune::EdgeWeightMethod edgeWeightsMethod,
}
const auto wells = ((mpiSize > 1) || partitionJacobiBlocks)
? schedule.getWellsatEnd()
? schedule.getActiveWellsatEnd()
: std::vector<Well>{};
const auto& possibleFutureConnections = schedule.getPossibleFutureConnections();
// Distribute the grid and switch to the distributed view.