Fix bug in upwinding code.

Accidental usage of std::vector's operator< discovered.
This commit is contained in:
Atgeirr Flø Rasmussen committed 2013-05-24 09:20:46 +02:00
1 parent 221bc7a468
commit 897ec0e909
1 file changed
+1 -1
+1 -1
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];
}