mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
cleanup: add and remove comments
This commit is contained in:
parent
58fa3eaf31
commit
61de5689bd
@ -2972,12 +2972,10 @@ namespace Opm {
|
|||||||
|
|
||||||
const auto& gname = group.name();
|
const auto& gname = group.name();
|
||||||
if (this->guideRate_->has(gname, Opm::Phase::GAS)) {
|
if (this->guideRate_->has(gname, Opm::Phase::GAS)) {
|
||||||
// No guiderates exist for 'gname'.
|
|
||||||
grval.set(data::GuideRateValue::Item::Gas,
|
grval.set(data::GuideRateValue::Item::Gas,
|
||||||
this->guideRate_->get(gname, Opm::Phase::GAS));
|
this->guideRate_->get(gname, Opm::Phase::GAS));
|
||||||
}
|
}
|
||||||
if (this->guideRate_->has(gname, Opm::Phase::WATER)) {
|
if (this->guideRate_->has(gname, Opm::Phase::WATER)) {
|
||||||
// No guiderates exist for 'gname'.
|
|
||||||
grval.set(data::GuideRateValue::Item::Water,
|
grval.set(data::GuideRateValue::Item::Water,
|
||||||
this->guideRate_->get(gname, Opm::Phase::WATER));
|
this->guideRate_->get(gname, Opm::Phase::WATER));
|
||||||
}
|
}
|
||||||
|
@ -338,7 +338,7 @@ namespace WellGroupHelpers
|
|||||||
const bool individual_control = (currentGroupControl != Group::ProductionCMode::FLD
|
const bool individual_control = (currentGroupControl != Group::ProductionCMode::FLD
|
||||||
&& currentGroupControl != Group::ProductionCMode::NONE);
|
&& currentGroupControl != Group::ProductionCMode::NONE);
|
||||||
const int num_group_controlled_wells
|
const int num_group_controlled_wells
|
||||||
= groupControlledWells(schedule, wellStateNupcol, reportStepIdx, subGroupName, "", !isInjector, Phase::OIL);
|
= groupControlledWells(schedule, wellStateNupcol, reportStepIdx, subGroupName, "", !isInjector, /*injectionPhaseNotUsed*/Phase::OIL);
|
||||||
if (individual_control || num_group_controlled_wells == 0) {
|
if (individual_control || num_group_controlled_wells == 0) {
|
||||||
for (int phase = 0; phase < np; phase++) {
|
for (int phase = 0; phase < np; phase++) {
|
||||||
groupTargetReduction[phase]
|
groupTargetReduction[phase]
|
||||||
@ -1063,7 +1063,7 @@ namespace WellGroupHelpers
|
|||||||
// the current well to be always included, because we
|
// the current well to be always included, because we
|
||||||
// want to know the situation that applied to the
|
// want to know the situation that applied to the
|
||||||
// calculation of reductions.
|
// calculation of reductions.
|
||||||
const int num_gr_ctrl = groupControlledWells(schedule, wellState, reportStepIdx, chain[ii + 1], "", true, Phase::OIL);
|
const int num_gr_ctrl = groupControlledWells(schedule, wellState, reportStepIdx, chain[ii + 1], "", /*is_producer*/true, /*injectionPhaseNotUsed*/Phase::OIL);
|
||||||
if (num_gr_ctrl == 0) {
|
if (num_gr_ctrl == 0) {
|
||||||
if (guideRate->has(chain[ii + 1])) {
|
if (guideRate->has(chain[ii + 1])) {
|
||||||
target += localReduction(chain[ii + 1]);
|
target += localReduction(chain[ii + 1]);
|
||||||
@ -1186,7 +1186,7 @@ namespace WellGroupHelpers
|
|||||||
// the current well to be always included, because we
|
// the current well to be always included, because we
|
||||||
// want to know the situation that applied to the
|
// want to know the situation that applied to the
|
||||||
// calculation of reductions.
|
// calculation of reductions.
|
||||||
const int num_gr_ctrl = groupControlledWells(schedule, wellState, reportStepIdx, chain[ii + 1], "", false, injectionPhase);
|
const int num_gr_ctrl = groupControlledWells(schedule, wellState, reportStepIdx, chain[ii + 1], "", /*is_producer*/false, injectionPhase);
|
||||||
if (num_gr_ctrl == 0) {
|
if (num_gr_ctrl == 0) {
|
||||||
if (guideRate->has(chain[ii + 1], injectionPhase)) {
|
if (guideRate->has(chain[ii + 1], injectionPhase)) {
|
||||||
target += localReduction(chain[ii + 1]);
|
target += localReduction(chain[ii + 1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user