mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 10:40:21 -06:00
check whether the group targets are converged.
This commit is contained in:
parent
65a3fff6f2
commit
9e93ebcc64
@ -268,6 +268,12 @@ namespace Opm {
|
||||
perfTimer.start();
|
||||
// the step is not considered converged until at least minIter iterations is done
|
||||
report.converged = getConvergence(timer, iteration,residual_norms) && iteration > nonlinear_solver.minIter();
|
||||
|
||||
// checking whether the group targets are converged
|
||||
if (wellModel().wellCollection()->groupControlActive()) {
|
||||
report.converged = report.converged && wellModel().wellCollection()->groupTargetConverged(well_state.wellRates());
|
||||
}
|
||||
|
||||
report.update_time += perfTimer.stop();
|
||||
residual_norms_history_.push_back(residual_norms);
|
||||
if (!report.converged) {
|
||||
|
@ -682,6 +682,11 @@ enum WellVariablePositions {
|
||||
assembleWellEq(ebosSimulator, dt, well_state, true);
|
||||
converged = getWellConvergence(ebosSimulator, it);
|
||||
|
||||
// checking whether the group targets are converged
|
||||
if (wellCollection()->groupControlActive()) {
|
||||
converged = converged && wellCollection()->groupTargetConverged(well_state.wellRates());
|
||||
}
|
||||
|
||||
if (converged) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user