mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
Fix bug in upwinding code.
Accidental usage of std::vector's operator< discovered.
This commit is contained in:
parent
8592ca825a
commit
1cf0bb465b
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user