mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 02:00:59 -06:00
Merge pull request #3004 from joakim-hove/nupcol
Use ScheduleState to access nupcol
This commit is contained in:
commit
c6f0ea3ae2
@ -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
|
||||
|
@ -2715,7 +2715,7 @@ namespace Opm
|
||||
const GasLiftOpt& glo = schedule.glo(report_step_idx);
|
||||
const int iteration_idx = ebos_simulator.model().newtonMethod().numIterations();
|
||||
if (glo.all_newton()) {
|
||||
const int nupcol = schedule.getNupcol(report_step_idx);
|
||||
const int nupcol = schedule[report_step_idx].nupcol();
|
||||
if (this->glift_debug) {
|
||||
const std::string msg = fmt::format(
|
||||
"LIFTOPT item4 == YES, it = {}, nupcol = {} --> GLIFT optimize = {}",
|
||||
|
Loading…
Reference in New Issue
Block a user