StandardWell::getMobility: use if constexpr

This commit is contained in:
Arne Morten Kvarving 2023-05-10 14:56:09 +02:00
parent c0bc0abc73
commit e406d2f0a1

View File

@ -864,7 +864,7 @@ namespace Opm
const unsigned activeCompIdx = Indices::canonicalToActiveComponentIndex(FluidSystem::solventComponentIndex(phaseIdx));
mob[activeCompIdx] = obtain(intQuants.mobility(phaseIdx));
}
if (has_solvent) {
if constexpr (has_solvent) {
mob[Indices::contiSolventEqIdx] = obtain(intQuants.solventMobility());
}
} else {