diff --git a/dumux/material/fluidsystems/1pgas.hh b/dumux/material/fluidsystems/1pgas.hh index 9da96e6dc3e82e60c0c2367c46276e981e94845d..57425a911109529f4653a1d5cae0bd48182a7cdd 100644 --- a/dumux/material/fluidsystems/1pgas.hh +++ b/dumux/material/fluidsystems/1pgas.hh @@ -30,6 +30,7 @@ #include <dune/common/exceptions.hh> #include <dumux/material/fluidsystems/base.hh> +#include <dumux/material/components/componenttraits.hh> namespace Dumux { @@ -48,6 +49,8 @@ class OnePGas using ThisType = OnePGas<Scalar, ComponentT>; using Base = BaseFluidSystem<Scalar, ThisType>; + static_assert(ComponentTraits<ComponentT>::hasGasState, "The component does not implement a gas state!"); + public: using Component = ComponentT; using ParameterCache = NullParameterCache; diff --git a/dumux/material/fluidsystems/1pliquid.hh b/dumux/material/fluidsystems/1pliquid.hh index 075f69dde810c6d26f6755eaf15e741b22e09544..96fa18d53ddaaa353246360143bd0b369b17930b 100644 --- a/dumux/material/fluidsystems/1pliquid.hh +++ b/dumux/material/fluidsystems/1pliquid.hh @@ -30,6 +30,7 @@ #include <dune/common/exceptions.hh> #include <dumux/material/fluidsystems/base.hh> +#include <dumux/material/components/componenttraits.hh> namespace Dumux { @@ -47,6 +48,8 @@ class OnePLiquid using ThisType = OnePLiquid<Scalar, ComponentT>; using Base = BaseFluidSystem<Scalar, ThisType>; + static_assert(ComponentTraits<ComponentT>::hasLiquidState, "The component does not implement a liquid state!"); + public: using Component = ComponentT; using ParameterCache = NullParameterCache;