mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Do not re-solve network after NUPCOL Newton iterations.
This commit is contained in:
parent
de4473bbd8
commit
95fdea67a8
@ -933,9 +933,11 @@ namespace Opm {
|
|||||||
|
|
||||||
// Maybe do a recursive call to iterate network and well controls.
|
// Maybe do a recursive call to iterate network and well controls.
|
||||||
if (network_changed) {
|
if (network_changed) {
|
||||||
const int max_local_network_iterations = 3;
|
// Only re-solve network for the first nupcol newton iterations.
|
||||||
const int last_newton_iteration_to_iterate_network = 2;
|
const int nupcol = schedule()[reportStepIdx].nupcol();
|
||||||
if (iterationIdx <= last_newton_iteration_to_iterate_network) {
|
if (iterationIdx <= nupcol) {
|
||||||
|
// Limit the number of iterations in the network re-solve.
|
||||||
|
const int max_local_network_iterations = 3;
|
||||||
if (recursion_level < max_local_network_iterations) {
|
if (recursion_level < max_local_network_iterations) {
|
||||||
assembleImpl(iterationIdx, dt, recursion_level + 1, local_deferredLogger);
|
assembleImpl(iterationIdx, dt, recursion_level + 1, local_deferredLogger);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user