This commit is contained in:
Kjetil Olsen Lye 2012-05-08 12:25:29 +02:00
commit 88b8ddebd2

View File

@ -538,7 +538,7 @@ namespace Opm
for (int wix = 0; wix < nw; ++wix) {
for (int phase = 0; phase < np; ++phase) {
// Reset vector
phase_flow_per_well[wix + np*phase] = 0.0;
phase_flow_per_well[wix*np + phase] = 0.0;
}
for (int i = wells.well_connpos[wix]; i < wells.well_connpos[wix + 1]; ++i) {
const int cell = wells.well_cells[i];