diff --git a/dumux/material/components/air.hh b/dumux/material/components/air.hh index 6b49313dc1c50b9b9235b401bd143b9cc787b646..ae0264b97b573549bfa3b2e97c39a76aecfb1092 100644 --- a/dumux/material/components/air.hh +++ b/dumux/material/components/air.hh @@ -40,7 +40,8 @@ namespace Components { * \tparam Scalar The type used for scalar values */ template <class Scalar> -class Air : public Component<Scalar, Air<Scalar> > +class Air : public Components::Base<Scalar, Air<Scalar> >, + public Components::Gas<Scalar, Air<Scalar> > { using IdealGas = Dumux::IdealGas<Scalar>; diff --git a/test/material/components/CMakeLists.txt b/test/material/components/CMakeLists.txt index 80508e7a4db8a7d77543f9551e31b600239a6177..3ca8fcc7aad34a43c05124d5b0bf989be870b06c 100644 --- a/test/material/components/CMakeLists.txt +++ b/test/material/components/CMakeLists.txt @@ -1,4 +1,5 @@ -dune_add_test(SOURCES test_componenttraits.cc) +dune_add_test(SOURCES test_componenttraits.cc + COMPILE_ONLY) add_executable(plot_component plotproperties.cc) diff --git a/test/material/components/test_componenttraits.cc b/test/material/components/test_componenttraits.cc index af88dd2ec001808246d5bd5a2195f1349802d4ce..976370946ab7416229b73a7f8e724258de2a97c9 100644 --- a/test/material/components/test_componenttraits.cc +++ b/test/material/components/test_componenttraits.cc @@ -35,6 +35,7 @@ int main(int argc, char *argv[]) using Traits = ComponentTraits<Components::Air<double>>; static_assert(Traits::hasGasState, "Air component is reported to have no gas state?!"); - // static_assert(!Traits::hasSolidState, "Air component is reported to implement a solid state?!"); + static_assert(!Traits::hasSolidState, "Air component is reported to implement a solid state?!"); + static_assert(!Traits::hasLiquidState, "Air component is reported to implement a liquid state?!"); static_assert(std::is_same<double, Traits::Scalar>::value, "Scalar type not correctly reported!"); }