mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove unnecessary argument, and minor formatting corrections.
This commit is contained in:
@@ -787,16 +787,17 @@ namespace {
|
|||||||
|
|
||||||
// check for dead wells
|
// check for dead wells
|
||||||
V isNotDeadWells = V::Constant(nw,1.0);
|
V isNotDeadWells = V::Constant(nw,1.0);
|
||||||
for (int c = 0; c < nw; ++c){
|
for (int w = 0; w < nw; ++w) {
|
||||||
if (wbqt.value()[c] == 0)
|
if (wbqt.value()[w] == 0) {
|
||||||
isNotDeadWells[c] = 0;
|
isNotDeadWells[w] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// compute wellbore mixture at std conds
|
// compute wellbore mixture at std conds
|
||||||
Selector<double> notDeadWells_selector(wbqt.value(),Selector<double>::Zero);
|
Selector<double> notDeadWells_selector(wbqt.value(), Selector<double>::Zero);
|
||||||
std::vector<ADB> mix_s(np, ADB::null());
|
std::vector<ADB> mix_s(np, ADB::null());
|
||||||
for (int phase = 0; phase < np; ++phase) {
|
for (int phase = 0; phase < np; ++phase) {
|
||||||
const int pos = pu.phase_pos[phase];
|
const int pos = pu.phase_pos[phase];
|
||||||
mix_s[phase] = notDeadWells_selector.select(ADB::constant(compi.col(pos), state.bhp.blockPattern()),wbq[phase]/wbqt);
|
mix_s[phase] = notDeadWells_selector.select(ADB::constant(compi.col(pos)), wbq[phase]/wbqt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user