Fix bug in upwinding code.
Accidental usage of std::vector's operator< discovered.
This commit is contained in:
1 parent
221bc7a468
commit
897ec0e909
1 file changed
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user