mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Made a (possibly wrong) adjustment to well_controls_append. Each control now has its current index set to 0, as there's only supposed to be one control per well.
This commit is contained in:
@@ -406,7 +406,7 @@ namespace Opm
|
||||
|
||||
|
||||
void computeWDP(const Wells& wells, const UnstructuredGrid& grid, const std::vector<double>& saturations,
|
||||
const std::vector<double> densities, std::vector<double>& wdp)
|
||||
const std::vector<double>& densities, std::vector<double>& wdp)
|
||||
{
|
||||
// Simple for now:
|
||||
for(int i = 0; i < wells.number_of_wells; i++) {
|
||||
|
||||
@@ -407,6 +407,9 @@ well_controls_append(enum control_type type ,
|
||||
ctrl->target[ctrl->num] = target;
|
||||
|
||||
ctrl->num += 1;
|
||||
|
||||
// TODO: Review this:
|
||||
ctrl->current = 0;
|
||||
}
|
||||
|
||||
return ok;
|
||||
|
||||
Reference in New Issue
Block a user