Fix indexing error in if-test.

This commit is contained in:
Atgeirr Flø Rasmussen 2014-01-27 10:42:17 +01:00
parent 924080d8dc
commit 38a48dd149

View File

@ -82,7 +82,7 @@ std::vector<double> Opm::WellDensitySegmented::computeConnectionPressureDelta(co
// Iterate over well perforations from bottom to top.
for (int perf = wells.well_connpos[w+1] - 1; perf >= wells.well_connpos[w]; --perf) {
for (int phase = 0; phase < np; ++phase) {
if (perf == wells.well_connpos[w+1]) {
if (perf == wells.well_connpos[w+1] - 1) {
// This is the bottom perforation. No flow from below.
q_out_perf[perf*np + phase] = 0.0;
} else {