mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4909 from blattms/fix-parallel-stop-network-update-at-max
[bugfix] Fix stopping network update in parallel at max steps.
This commit is contained in:
commit
8b8164308a
@ -1122,9 +1122,12 @@ namespace Opm {
|
||||
std::tie(do_network_update, well_group_control_changed) =
|
||||
updateWellControlsAndNetworkIteration(mandatory_network_balance, relax_network_balance, dt,local_deferredLogger);
|
||||
++network_update_iteration;
|
||||
if (terminal_output_ && (network_update_iteration >= max_iteration) ) {
|
||||
local_deferredLogger.info("maximum of " + std::to_string(max_iteration) + " iterations has been used, we stop the network update now, "
|
||||
"the simulation will continue with unconvergeed network results");
|
||||
|
||||
if (network_update_iteration >= max_iteration ) {
|
||||
if (terminal_output_) {
|
||||
local_deferredLogger.info("maximum of " + std::to_string(max_iteration) + " iterations has been used, we stop the network update now. "
|
||||
"The simulation will continue with unconverged network results");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user