mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-23 07:53:29 -06:00
Fixed bug where phase_pos was used instead of phase_used
This commit is contained in:
parent
90ff56503d
commit
a93efec0e2
@ -322,8 +322,8 @@ namespace Opm
|
|||||||
this->compute_R_(n, p, T, z, cells, &R_[0]);
|
this->compute_R_(n, p, T, z, cells, &R_[0]);
|
||||||
}
|
}
|
||||||
const auto& pu = phaseUsage();
|
const auto& pu = phaseUsage();
|
||||||
bool oil_and_gas = pu.phase_pos[BlackoilPhases::Liquid] &&
|
bool oil_and_gas = pu.phase_used[BlackoilPhases::Liquid] &&
|
||||||
pu.phase_pos[BlackoilPhases::Vapour];
|
pu.phase_used[BlackoilPhases::Vapour];
|
||||||
const int o = pu.phase_pos[BlackoilPhases::Liquid];
|
const int o = pu.phase_pos[BlackoilPhases::Liquid];
|
||||||
const int g = pu.phase_pos[BlackoilPhases::Vapour];
|
const int g = pu.phase_pos[BlackoilPhases::Vapour];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user