mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Initialise current well control in the appropriate place.
This commit is contained in:
parent
dcad28acbd
commit
1365dcd6b8
@ -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.");
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user