adding updateWellInjectionTargets updateWellProductionTargets

For WellsGroup. At least for the current moment, the updation of the
well targets for injectors and producers should be handled in a
seprate way.
This commit is contained in:
Kai Bao 2016-10-07 16:18:09 +02:00
parent df745bafef
commit 3551ccac0a
2 changed files with 6 additions and 3 deletions

View File

@ -209,7 +209,7 @@ namespace Opm
any_should_update_node = true;
}
if (leaf_nodes_[i]->individualControl()) {
if (!leaf_nodes_[i]->individualControl()) {
any_group_control_node = true;
}
}
@ -228,7 +228,7 @@ namespace Opm
any_should_update_node = true;
}
if (leaf_nodes_[i]->individualControl()) {
if (!leaf_nodes_[i]->individualControl()) {
any_group_control_node = true;
}
}

View File

@ -325,7 +325,10 @@ namespace Opm
const std::vector<double>& well_surfacerates_phase);
template <class WellState>
void updateWellTargets(const WellState& well_state);
void updateWellProductionTargets(const WellState& well_state);
template <class WellState>
void updateWellInjectionTargets(const WellState& well_state);
private:
std::vector<std::shared_ptr<WellsGroupInterface> > children_;