mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 18:50:19 -06:00
Merge pull request #269 from totto82/rsrv_fix
BUGFIX: Avoid inclusion of disgas in the vapoil contribution
This commit is contained in:
commit
86e5677b8e
@ -613,8 +613,12 @@ namespace {
|
||||
const int po = pu.phase_pos[ Oil ];
|
||||
const int pg = pu.phase_pos[ Gas ];
|
||||
|
||||
// Temporary copy to avoid contribution of dissolved gas in the vaporized oil
|
||||
// when both dissolved gas and vaporized oil are present.
|
||||
const ADB accum_gas_copy =rq_[pg].accum[aix];
|
||||
|
||||
rq_[pg].accum[aix] += state.rs * rq_[po].accum[aix];
|
||||
rq_[po].accum[aix] += state.rv * rq_[pg].accum[aix];
|
||||
rq_[po].accum[aix] += state.rv * accum_gas_copy;
|
||||
//DUMP(rq_[pg].accum[aix]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user