Made the grouptree respect the new convention of tilde.
This commit is contained in:
parent
26b5d1ea39
commit
c64ddca287
@ -737,7 +737,9 @@ namespace Opm
|
|||||||
void WellNode::shutWell()
|
void WellNode::shutWell()
|
||||||
{
|
{
|
||||||
if (shut_well_) {
|
if (shut_well_) {
|
||||||
set_current_control(self_index_, -1, wells_);
|
// We set the tilde of the current control
|
||||||
|
// set_current_control(self_index_, -1, wells_);
|
||||||
|
wells_->ctrls[self_index_]->current = ~ wells_->ctrls[self_index_]->current;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const double target = 0.0;
|
const double target = 0.0;
|
||||||
@ -755,7 +757,7 @@ namespace Opm
|
|||||||
wells_->ctrls[self_index_]->target[group_control_index_] = target;
|
wells_->ctrls[self_index_]->target[group_control_index_] = target;
|
||||||
std::copy(distr, distr + np, wells_->ctrls[self_index_]->distr + np * group_control_index_);
|
std::copy(distr, distr + np, wells_->ctrls[self_index_]->distr + np * group_control_index_);
|
||||||
}
|
}
|
||||||
set_current_control(self_index_, -1, wells_);
|
wells_->ctrls[self_index_]->current = ~ wells_->ctrls[self_index_]->current;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user