diff --git a/dumux/porousmediumflow/1pnc/model.hh b/dumux/porousmediumflow/1pnc/model.hh index 07aea1f3c023ef6f90d571dec2736e00ff0356ac..1710578a1853e8d770c11f1d0f09a5187eaa7785 100644 --- a/dumux/porousmediumflow/1pnc/model.hh +++ b/dumux/porousmediumflow/1pnc/model.hh @@ -142,13 +142,7 @@ public: }; //! Set as default that no component mass balance is replaced by the total mass balance -SET_PROP(OnePNC, ReplaceCompEqIdx) -{ -private: - using FluidSystem = typename GET_PROP_TYPE(TypeTag, PTAG(FluidSystem)); -public: - static constexpr auto value = FluidSystem::numComponents; -}; +SET_INT_PROP(OnePNC, ReplaceCompEqIdx, GET_PROP_TYPE(TypeTag, ModelTraits)::numComponents()); /*! * \brief The fluid state which is used by the volume variables to