Index into vectors using integers.

This commit corrects an error that has been present since the
introduction of function wellsToSrc() in commit a50bb8f but was never
detected.  Although the conversion int->double->std::size_t is likely to
be loss-less, it is better to not introduce any more steps than are
actually needed.
This commit is contained in:
Bård Skaflestad 2013-02-18 11:49:52 +01:00
parent 4bf93e31c0
commit 2eaf60f680

View File

@ -474,7 +474,7 @@ namespace Opm
if (wells.type[w] == INJECTOR) {
flow *= wells.comp_frac[np*w + 0]; // Obtaining water rate for inflow source.
}
const double cell = wells.well_cells[wells.well_connpos[w]];
const int cell = wells.well_cells[wells.well_connpos[w]];
src[cell] = flow;
}
}