Changed to use well_controls_get_current_distr().

This commit is contained in:
Joakim Hove 2014-01-09 12:09:19 +01:00
parent 427f55940e
commit bd1417b164
2 changed files with 2 additions and 10 deletions

View File

@ -746,11 +746,7 @@ namespace {
bhp_targets[w] = -1e100;
rate_targets[w] = well_controls_get_current_target(wc);
{
/*
Would have guessed that this should use the
well_control_get_current_distr() function instead?
*/
const double * distr = well_controls_iget_distr( wc , 0);
const double * distr = well_controls_get_current_distr( wc );
for (int phase = 0; phase < np; ++phase) {
rate_distr.insert(w, phase*nw + w) = distr[phase];
}

View File

@ -384,11 +384,7 @@ namespace {
bhp_targets[w] = -1e100;
rate_targets[w] = well_controls_get_current_target( wc );
{
/*
Would have guessed that this should use the
well_control_get_current_distr() function instead?
*/
const double * distr = well_controls_iget_distr( wc , 0 );
const double * distr = well_controls_get_current_distr( wc );
for (int phase = 0; phase < np; ++phase) {
rate_distr.insert(w, phase*nw + w) = distr[phase];
}