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:
Kjetil Olsen Lye
2012-04-12 18:47:06 +02:00
parent 7c21765100
commit 74fc0a5c25
4 changed files with 13 additions and 3 deletions

View File

@@ -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++) {

View File

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