mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-30 11:06:55 -06:00
Use the already queried active phase index directly instead of looking it up each time.
This commit is contained in:
parent
622c8825a9
commit
2209170c15
@ -1941,9 +1941,9 @@ namespace {
|
||||
if (active_[idx]) {
|
||||
const int pos = pu.phase_pos[idx];
|
||||
const ADB& tempB = rq_[pos].b;
|
||||
B.col(pu.phase_pos[idx]) = 1./tempB.value();
|
||||
R.col(pu.phase_pos[idx]) = residual_.material_balance_eq[pu.phase_pos[idx]].value();
|
||||
tempV.col(pu.phase_pos[idx]) = R.col(pu.phase_pos[idx]).abs()/pv;
|
||||
B.col(pos) = 1./tempB.value();
|
||||
R.col(pos) = residual_.material_balance_eq[pos].value();
|
||||
tempV.col(pos) = R.col(pos).abs()/pv;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user