cosmetics

This commit is contained in:
Arne Morten Kvarving 2023-05-05 13:58:23 +02:00
parent f06e7dc165
commit e7bb51740e
2 changed files with 6 additions and 7 deletions

View File

@ -762,8 +762,8 @@ namespace Opm
const Value drawdown = cell_press_at_perf - perf_press; const Value drawdown = cell_press_at_perf - perf_press;
// producing perforations // producing perforations
if ( drawdown > 0.0) { if (drawdown > 0.0) {
// Do nothing is crossflow is not allowed // Do nothing if crossflow is not allowed
if (!allow_cf && this->isInjector()) { if (!allow_cf && this->isInjector()) {
return; return;
} }

View File

@ -219,8 +219,8 @@ namespace Opm
} }
// producing perforations // producing perforations
if ( drawdown > 0 ) { if (drawdown > 0) {
//Do nothing if crossflow is not allowed // Do nothing if crossflow is not allowed
if (!allow_cf && this->isInjector()) { if (!allow_cf && this->isInjector()) {
return; return;
} }
@ -269,9 +269,8 @@ namespace Opm
perf_rates.dis_gas_in_water = getValue(dis_gas_wat); perf_rates.dis_gas_in_water = getValue(dis_gas_wat);
} }
} }
} else { } else {
//Do nothing if crossflow is not allowed // Do nothing if crossflow is not allowed
if (!allow_cf && this->isProducer()) { if (!allow_cf && this->isProducer()) {
return; return;
} }
@ -354,7 +353,7 @@ namespace Opm
} }
// injecting connections total volumerates at standard conditions // injecting connections total volumerates at standard conditions
Value cqt_is = cqt_i/volumeRatio; Value cqt_is = cqt_i / volumeRatio;
for (int componentIdx = 0; componentIdx < this->numComponents(); ++componentIdx) { for (int componentIdx = 0; componentIdx < this->numComponents(); ++componentIdx) {
cq_s[componentIdx] = cmix_s[componentIdx] * cqt_is; cq_s[componentIdx] = cmix_s[componentIdx] * cqt_is;
} }