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 dcad28acbd
commit 1365dcd6b8
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.
// TODO: Handle multiple controls.
ok = well_controls_append(well_data[w].control, well_data[w].target, w_->ctrls[w]);
w_->ctrls[w]->current = 0;
if (!ok) {
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->num += 1;
/* TODO: Review this: */
ctrl->current = 0;
}
return ok;