mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
checking LIFTOPT active before gliftBeginTimeStepWellTestUpdateALQ
to avoid meaningless message output related to GLIFT and WTEST
This commit is contained in:
@@ -353,7 +353,12 @@ namespace Opm
|
|||||||
initPrimaryVariablesEvaluation();
|
initPrimaryVariablesEvaluation();
|
||||||
|
|
||||||
if (this->isProducer()) {
|
if (this->isProducer()) {
|
||||||
gliftBeginTimeStepWellTestUpdateALQ(simulator, well_state_copy, deferred_logger);
|
const auto& schedule = simulator.vanguard().schedule();
|
||||||
|
const auto report_step = simulator.episodeIndex();
|
||||||
|
const auto& glo = schedule.glo(report_step);
|
||||||
|
if (glo.active()) {
|
||||||
|
gliftBeginTimeStepWellTestUpdateALQ(simulator, well_state_copy, deferred_logger);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
WellTestState welltest_state_temp;
|
WellTestState welltest_state_temp;
|
||||||
@@ -759,9 +764,8 @@ namespace Opm
|
|||||||
deferred_logger.info(msg);
|
deferred_logger.info(msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto& well_ecl = this->wellEcl();
|
|
||||||
const auto& schedule = ebos_simulator.vanguard().schedule();
|
const auto& schedule = ebos_simulator.vanguard().schedule();
|
||||||
auto report_step_idx = ebos_simulator.episodeIndex();
|
const auto report_step_idx = ebos_simulator.episodeIndex();
|
||||||
const auto& glo = schedule.glo(report_step_idx);
|
const auto& glo = schedule.glo(report_step_idx);
|
||||||
if (!glo.has_well(well_name)) {
|
if (!glo.has_well(well_name)) {
|
||||||
const std::string msg = fmt::format(
|
const std::string msg = fmt::format(
|
||||||
@@ -777,6 +781,7 @@ namespace Opm
|
|||||||
max_alq = *max_alq_optional;
|
max_alq = *max_alq_optional;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
const auto& well_ecl = this->wellEcl();
|
||||||
const auto& controls = well_ecl.productionControls(summary_state);
|
const auto& controls = well_ecl.productionControls(summary_state);
|
||||||
const auto& table = this->vfpProperties()->getProd()->getTable(controls.vfp_table_number);
|
const auto& table = this->vfpProperties()->getProd()->getTable(controls.vfp_table_number);
|
||||||
const auto& alq_values = table.getALQAxis();
|
const auto& alq_values = table.getALQAxis();
|
||||||
|
|||||||
Reference in New Issue
Block a user