mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-01 13:29:08 -06:00
Some trivial cleaning
This commit is contained in:
parent
992ab84435
commit
5839962e31
@ -159,7 +159,6 @@ namespace Opm
|
||||
using Base::getAllowCrossFlow;
|
||||
using Base::phaseUsage;
|
||||
using Base::active;
|
||||
using Base::flowToEbosPvIdx;
|
||||
using Base::flowPhaseToEbosPhaseIdx;
|
||||
using Base::flowPhaseToEbosCompIdx;
|
||||
using Base::numComponents;
|
||||
|
@ -2045,7 +2045,7 @@ namespace Opm
|
||||
if (has_solvent && phaseIdx == contiSolventEqIdx )
|
||||
return 0.01;
|
||||
|
||||
// we should come this fare
|
||||
// we should not come this far
|
||||
assert(false);
|
||||
return 1.0;
|
||||
}
|
||||
|
@ -268,8 +268,6 @@ namespace Opm
|
||||
|
||||
int flowPhaseToEbosCompIdx( const int phaseIdx ) const;
|
||||
|
||||
int flowToEbosPvIdx( const int flowPv ) const;
|
||||
|
||||
int flowPhaseToEbosPhaseIdx( const int phaseIdx ) const;
|
||||
|
||||
// TODO: it is dumplicated with StandardWellsDense
|
||||
|
@ -245,12 +245,15 @@ namespace Opm
|
||||
flowPhaseToEbosPhaseIdx( const int phaseIdx ) const
|
||||
{
|
||||
const auto& pu = phaseUsage();
|
||||
if (active()[Water] && pu.phase_pos[Water] == phaseIdx)
|
||||
if (active()[Water] && pu.phase_pos[Water] == phaseIdx) {
|
||||
return FluidSystem::waterPhaseIdx;
|
||||
if (active()[Oil] && pu.phase_pos[Oil] == phaseIdx)
|
||||
}
|
||||
if (active()[Oil] && pu.phase_pos[Oil] == phaseIdx) {
|
||||
return FluidSystem::oilPhaseIdx;
|
||||
if (active()[Gas] && pu.phase_pos[Gas] == phaseIdx)
|
||||
}
|
||||
if (active()[Gas] && pu.phase_pos[Gas] == phaseIdx) {
|
||||
return FluidSystem::gasPhaseIdx;
|
||||
}
|
||||
|
||||
assert(phaseIdx < 3);
|
||||
// for other phases return the index
|
||||
|
Loading…
Reference in New Issue
Block a user