From cfa58d0ff2312e54b6193c6ede0022467c242fff Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Wed, 11 Apr 2018 19:14:42 +0200 Subject: [PATCH] [1pnc] Fix default for replaceCompIdx --- dumux/porousmediumflow/1pnc/model.hh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dumux/porousmediumflow/1pnc/model.hh b/dumux/porousmediumflow/1pnc/model.hh index 07aea1f3c0..1710578a18 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 -- GitLab