mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
make sure polymer position is the last.
This commit is contained in:
parent
c2d6347271
commit
d457211cf2
@ -160,8 +160,10 @@ namespace {
|
|||||||
{
|
{
|
||||||
const int maxnp = Opm::BlackoilPhases::MaxNumPhases;
|
const int maxnp = Opm::BlackoilPhases::MaxNumPhases;
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
for (int p = 0; p < maxnp; ++p) {
|
for (int phase = 0; phase < maxnp; ++phase) {
|
||||||
pos += pu.phase_used[p];
|
if (pu.phase_used[phase]) {
|
||||||
|
pos++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return pos;
|
return pos;
|
||||||
|
Loading…
Reference in New Issue
Block a user