mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
StandardWell::getMobility: use if constexpr
This commit is contained in:
parent
c0bc0abc73
commit
e406d2f0a1
@ -864,7 +864,7 @@ namespace Opm
|
|||||||
const unsigned activeCompIdx = Indices::canonicalToActiveComponentIndex(FluidSystem::solventComponentIndex(phaseIdx));
|
const unsigned activeCompIdx = Indices::canonicalToActiveComponentIndex(FluidSystem::solventComponentIndex(phaseIdx));
|
||||||
mob[activeCompIdx] = obtain(intQuants.mobility(phaseIdx));
|
mob[activeCompIdx] = obtain(intQuants.mobility(phaseIdx));
|
||||||
}
|
}
|
||||||
if (has_solvent) {
|
if constexpr (has_solvent) {
|
||||||
mob[Indices::contiSolventEqIdx] = obtain(intQuants.solventMobility());
|
mob[Indices::contiSolventEqIdx] = obtain(intQuants.solventMobility());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user