mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix saturation bug.
This commit is contained in:
parent
f12c781f3e
commit
79fed93b76
@ -774,7 +774,7 @@ namespace Opm {
|
|||||||
double* s = state_.reservoir_state.saturation().data() + 3*cell;
|
double* s = state_.reservoir_state.saturation().data() + 3*cell;
|
||||||
s[Water] += sfactor*dsw;
|
s[Water] += sfactor*dsw;
|
||||||
s[Gas] += sfactor*dsg;
|
s[Gas] += sfactor*dsg;
|
||||||
s[Oil] = 1.0 - s[Water] - s[Oil];
|
s[Oil] = 1.0 - s[Water] - s[Gas];
|
||||||
|
|
||||||
// Handle < 0 saturations.
|
// Handle < 0 saturations.
|
||||||
for (int phase : { Gas, Oil, Water }) { // TODO: check if ordering here is significant
|
for (int phase : { Gas, Oil, Water }) { // TODO: check if ordering here is significant
|
||||||
|
Loading…
Reference in New Issue
Block a user