Initialise current well control in the appropriate place.
This commit is contained in:
parent
db6b57f76a
commit
a085337dc0
@ -598,6 +598,7 @@ namespace Opm
|
|||||||
// We only append a single control at this point.
|
// We only append a single control at this point.
|
||||||
// TODO: Handle multiple controls.
|
// TODO: Handle multiple controls.
|
||||||
ok = well_controls_append(well_data[w].control, well_data[w].target, w_->ctrls[w]);
|
ok = well_controls_append(well_data[w].control, well_data[w].target, w_->ctrls[w]);
|
||||||
|
w_->ctrls[w]->current = 0;
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
THROW("Failed to add well controls.");
|
THROW("Failed to add well controls.");
|
||||||
}
|
}
|
||||||
|
@ -407,9 +407,6 @@ well_controls_append(enum control_type type ,
|
|||||||
ctrl->target[ctrl->num] = target;
|
ctrl->target[ctrl->num] = target;
|
||||||
|
|
||||||
ctrl->num += 1;
|
ctrl->num += 1;
|
||||||
|
|
||||||
/* TODO: Review this: */
|
|
||||||
ctrl->current = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
|
Loading…
Reference in New Issue
Block a user