Initialise current well control in the appropriate place.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-04-19 16:11:58 +02:00
parent db6b57f76a
commit a085337dc0
2 changed files with 1 additions and 3 deletions

View File

@ -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.");
} }

View File

@ -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;