Some trivial cleaning

This commit is contained in:
Tor Harald Sandve 2017-09-21 12:16:46 +02:00
parent 992ab84435
commit 5839962e31
4 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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

View File

@ -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