Merge pull request #3849 from hakonhagland/glift_debug_rank

Cleanup gaslift debugging output code
This commit is contained in:
Tor Harald Sandve
2022-03-24 14:13:33 +01:00
committed by GitHub
13 changed files with 105 additions and 53 deletions

View File

@@ -909,8 +909,7 @@ namespace Opm {
if (this->glift_debug) gliftDebugShowALQ(deferred_logger);
num_wells_changed = glift_wells.size();
}
auto comm = ebosSimulator_.vanguard().grid().comm();
num_wells_changed = comm.sum(num_wells_changed);
num_wells_changed = this->comm_.sum(num_wells_changed);
return num_wells_changed > 0;
}
@@ -1043,7 +1042,7 @@ namespace Opm {
= std::make_unique<GasLiftSingleWell>(
*well, ebosSimulator_, summary_state,
deferred_logger, this->wellState(), this->groupState(),
group_info, sync_groups, this->glift_debug);
group_info, sync_groups, this->comm_, this->glift_debug);
auto state = glift->runOptimize(
ebosSimulator_.model().newtonMethod().numIterations());
if (state) {