Changed to use well_controls_get_current_distr().

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

No files matched your search

+1 -5
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];
}
+1 -5
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];
}