diff --git a/dumux/material/fluidmatrixinteractions/2p/thermalconductivitysomerton.hh b/dumux/material/fluidmatrixinteractions/2p/thermalconductivitysomerton.hh index b7128ad24d7a7bcf5a7d49d72c8d887e875a4eb3..096bd4535917fce0763758225761b7960bbecccf 100644 --- a/dumux/material/fluidmatrixinteractions/2p/thermalconductivitysomerton.hh +++ b/dumux/material/fluidmatrixinteractions/2p/thermalconductivitysomerton.hh @@ -85,7 +85,8 @@ public: { using FluidSystem = typename VolumeVariables::FluidSystem; static_assert(FluidSystem::numPhases == 2, "ThermalConductivitySomerton only works for two-phase fluid systems!"); - static_assert(FluidSystem::isGas(0) || FluidSystem::isGas(1), "ThermalConductivitySomerton only works if one phase is gaseous and one is liquid!"); + static_assert((FluidSystem::isGas(0) && !FluidSystem::isGas(1)) || (!FluidSystem::isGas(0) && FluidSystem::isGas(1)), + "ThermalConductivitySomerton only works if one phase is gaseous and one is liquid!"); constexpr int liquidPhaseIdx = FluidSystem::isGas(0) ? 1 : 0; constexpr int gasPhaseIdx = FluidSystem::isGas(0) ? 0 : 1;