Fix bug in upwinding code.

Accidental usage of std::vector's operator< discovered.
This commit is contained in:
Atgeirr Flø Rasmussen 2013-05-24 09:20:46 +02:00
parent 8592ca825a
commit 1cf0bb465b

View File

@ -429,7 +429,7 @@ namespace Opm
for (int phase = 0; phase < np; ++phase) {
int upwindc = -1;
if (c[0] >=0 && c[1] >= 0) {
upwindc = (pot[0] < pot[1]) ? c[1] : c[0];
upwindc = (pot[0][phase] < pot[1][phase]) ? c[1] : c[0];
} else {
upwindc = (c[0] >= 0) ? c[0] : c[1];
}