Use ScheduleState to access nupcol

This commit is contained in:
Joakim Hove
2021-01-06 15:10:05 +01:00
parent 42a6a3b573
commit c1e10d81ba
2 changed files with 3 additions and 3 deletions

View File

@@ -1391,7 +1391,7 @@ namespace Opm {
{
const int reportStepIdx = ebosSimulator_.episodeIndex();
const Group& fieldGroup = schedule().getGroup("FIELD", reportStepIdx);
const int nupcol = schedule().getNupcol(reportStepIdx);
const int nupcol = schedule()[reportStepIdx].nupcol();
const int iterationIdx = ebosSimulator_.model().newtonMethod().numIterations();
// This builds some necessary lookup structures, so it must be called
@@ -1977,7 +1977,7 @@ namespace Opm {
{
const int reportStepIdx = ebosSimulator_.episodeIndex();
const int nupcol = schedule().getNupcol(reportStepIdx);
const int nupcol = schedule()[reportStepIdx].nupcol();
const int iterationIdx = ebosSimulator_.model().newtonMethod().numIterations();
// don't switch group control when iterationIdx > nupcol
// to avoid oscilations between group controls