mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Code cleanup
This commit is contained in:
@@ -453,18 +453,11 @@ namespace Opm
|
||||
const int oilpos = pu.phase_pos[Oil];
|
||||
const int gaspos = pu.phase_pos[Gas];
|
||||
|
||||
const ADB tmp_oil = cmix_s[oilpos] - (rv_perfcells * cmix_s[gaspos] / d);
|
||||
volumeRatio += tmp_oil / b_perfcells[oilpos];
|
||||
|
||||
// First compute for Oil
|
||||
{
|
||||
const ADB tmp = cmix_s[oilpos] - (rv_perfcells * cmix_s[gaspos] / d);
|
||||
volumeRatio += tmp / b_perfcells[oilpos];
|
||||
}
|
||||
|
||||
// Then compute for Gas
|
||||
{
|
||||
const ADB tmp = cmix_s[gaspos] - (rs_perfcells * cmix_s[oilpos] / d);
|
||||
volumeRatio += tmp / b_perfcells[gaspos];
|
||||
}
|
||||
const ADB tmp_gas = cmix_s[gaspos] - (rs_perfcells * cmix_s[oilpos] / d);
|
||||
volumeRatio += tmp_gas / b_perfcells[gaspos];
|
||||
}
|
||||
else {
|
||||
if (active[Oil]) {
|
||||
|
||||
Reference in New Issue
Block a user