addressing the reviewing comments for PR #4596

This commit is contained in:
Kai Bao
2023-04-20 15:47:31 +02:00
parent 1542f2c087
commit 79eeeae16e
4 changed files with 9 additions and 12 deletions

View File

@@ -1510,11 +1510,7 @@ namespace Opm {
const bool network_changed = comm.sum(local_network_changed);
const double network_imbalance = comm.max(local_network_imbalance);
if (network_changed) {
const auto& balance = schedule()[episodeIdx].network_balance();
// Iterate if not converged, and number of iterations is not yet max (NETBALAN item 3).
if (network_update_it < balance.pressure_max_iter() && network_imbalance > balance.pressure_tolerance()) {
more_network_update = true;
}
more_network_update = moreNetworkIteration(episodeIdx, network_update_it, network_imbalance);
}
}