computeWellFlux: use operator -= when possible.

This commit is contained in:
Robert Kloefkorn 2016-02-13 16:16:18 +01:00
parent 98c49fd52f
commit 2eebf73e1a

View File

@ -1244,11 +1244,11 @@ namespace detail {
if (phase == Oil && active_[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]) {
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];
}