mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
PI/II Loop: Switch Order of Injection/Production Branches
For readability reasons. Suggested by: [at]atgeirr
This commit is contained in:
parent
c8a43b982c
commit
92589a697b
@ -1243,17 +1243,17 @@ namespace Opm
|
|||||||
setToZero(connPI);
|
setToZero(connPI);
|
||||||
|
|
||||||
const auto segIx = this->segmentNumberToIndex(allConn[allPerfID].segment());
|
const auto segIx = this->segmentNumberToIndex(allConn[allPerfID].segment());
|
||||||
if (! isInjecting(fs, segIx, subsetPerfID)) { // Production or zero flow rate
|
if (isInjecting(fs, segIx, subsetPerfID)) { // Connection injects into reservoir
|
||||||
if (allow_xflow || this->isProducer()) {
|
if (this->isInjector() || allow_xflow) {
|
||||||
this->computeConnLevelProdInd(fs, connPICalc, mob, connPI);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else { // Connection injects into reservoir
|
|
||||||
if (allow_xflow || this->isInjector()) {
|
|
||||||
this->computeConnLevelInjInd(fs, connPICalc, mob, segIx,
|
this->computeConnLevelInjInd(fs, connPICalc, mob, segIx,
|
||||||
connPI, deferred_logger);
|
connPI, deferred_logger);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else { // Production or zero flow rate
|
||||||
|
if (this->isProducer() || allow_xflow) {
|
||||||
|
this->computeConnLevelProdInd(fs, connPICalc, mob, connPI);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
addVector(connPI, wellPI);
|
addVector(connPI, wellPI);
|
||||||
|
|
||||||
|
@ -2347,17 +2347,17 @@ namespace Opm
|
|||||||
};
|
};
|
||||||
|
|
||||||
setToZero(connPI);
|
setToZero(connPI);
|
||||||
if (! isInjecting(fs, subsetPerfID)) { // Production or zero flow rate
|
if (isInjecting(fs, subsetPerfID)) { // Connection injects into reservoir
|
||||||
if (allow_xflow || this->isProducer()) {
|
if (this->isInjector() || allow_xflow) {
|
||||||
this->computeConnLevelProdInd(fs, connPICalc, mob, connPI);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else { // Connection injects into reservoir
|
|
||||||
if (allow_xflow || this->isInjector()) {
|
|
||||||
this->computeConnLevelInjInd(fs, connPICalc, mob,
|
this->computeConnLevelInjInd(fs, connPICalc, mob,
|
||||||
connPI, deferred_logger);
|
connPI, deferred_logger);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else { // Production or zero flow rate
|
||||||
|
if (this->isProducer() || allow_xflow) {
|
||||||
|
this->computeConnLevelProdInd(fs, connPICalc, mob, connPI);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
addVector(connPI, wellPI);
|
addVector(connPI, wellPI);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user