mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Modified some assertions.
- In a gravity segregation setting, total upwind mobility may be zero. - Make assertion more readable by removing negation.
This commit is contained in:
parent
8b8d10d58f
commit
dce3068343
@ -297,10 +297,10 @@ namespace Opm {
|
||||
double mc, dmcdc;
|
||||
upwindMobility(dflux, gflux, n, pix, m, dmds, dmobwatdc, mc, dmcdc);
|
||||
|
||||
assert (! ((m[0] < 0) || (m[1] < 0)));
|
||||
assert ((m[0] >= 0.0) && (m[1] >= 0.0));
|
||||
|
||||
double mt = m[0] + m[1];
|
||||
assert (mt > 0);
|
||||
assert (mt >= 0.0);
|
||||
|
||||
double sgn = 2.0*(n[0] == cell) - 1.0;
|
||||
dflux *= sgn;
|
||||
|
Loading…
Reference in New Issue
Block a user