mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
computeWellFlux: use operator -= when possible.
This commit is contained in:
@@ -1244,11 +1244,11 @@ namespace detail {
|
|||||||
|
|
||||||
if (phase == Oil && active_[Gas]) {
|
if (phase == Oil && active_[Gas]) {
|
||||||
const int gaspos = pu.phase_pos[Gas];
|
const int gaspos = pu.phase_pos[Gas];
|
||||||
tmp = tmp - rv_perfcells * cmix_s[gaspos] / d;
|
tmp -= rv_perfcells * cmix_s[gaspos] / d;
|
||||||
}
|
}
|
||||||
if (phase == Gas && active_[Oil]) {
|
if (phase == Gas && active_[Oil]) {
|
||||||
const int oilpos = pu.phase_pos[Oil];
|
const int oilpos = pu.phase_pos[Oil];
|
||||||
tmp = tmp - rs_perfcells * cmix_s[oilpos] / d;
|
tmp -= rs_perfcells * cmix_s[oilpos] / d;
|
||||||
}
|
}
|
||||||
volumeRatio += tmp / b_perfcells[phase];
|
volumeRatio += tmp / b_perfcells[phase];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user