mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-10 03:05:33 -06:00
use nupcol to avoid oscilation between group controls
This commit is contained in:
parent
0773d07df5
commit
33afb332fa
@ -1741,6 +1741,14 @@ namespace Opm {
|
||||
updateGroupIndividualControls(Opm::DeferredLogger& deferred_logger, std::set<std::string>& switched_groups)
|
||||
{
|
||||
const int reportStepIdx = ebosSimulator_.episodeIndex();
|
||||
|
||||
const int nupcol = schedule().getNupcol(reportStepIdx);
|
||||
const int iterationIdx = ebosSimulator_.model().newtonMethod().numIterations();
|
||||
// don't switch group control when iterationIdx > nupcol
|
||||
// to avoid oscilations between group controls
|
||||
if (iterationIdx > nupcol)
|
||||
return;
|
||||
|
||||
const Group& fieldGroup = schedule().getGroup("FIELD", reportStepIdx);
|
||||
updateGroupIndividualControl(fieldGroup, deferred_logger, switched_groups);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user