mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fixes wrong indexing for residual_.material_balance_eq.
Curiously, this indexes differently from other stuff. It uses the phase index and not the index within the phases that are present.
This commit is contained in:
parent
cb9048d928
commit
3fcb99c27a
@ -1942,7 +1942,7 @@ namespace {
|
||||
const int pos = pu.phase_pos[idx];
|
||||
const ADB& tempB = rq_[pos].b;
|
||||
B.col(pos) = 1./tempB.value();
|
||||
R.col(pos) = residual_.material_balance_eq[pos].value();
|
||||
R.col(pos) = residual_.material_balance_eq[idx].value();
|
||||
tempV.col(pos) = R.col(pos).abs()/pv;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user