diff --git a/dumux/material/components/unit.hh b/dumux/material/components/unit.hh index b623fcd8109fa0afda258ed1654aad88665bc559..807653b60843b9dc0bbbffc70e6c85fc1ae2e2d4 100644 --- a/dumux/material/components/unit.hh +++ b/dumux/material/components/unit.hh @@ -24,6 +24,7 @@ #ifndef DUMUX_UNIT_HH #define DUMUX_UNIT_HH +#include <dune/common/deprecated.hh> #include "component.hh" namespace Dumux @@ -36,7 +37,8 @@ namespace Dumux * \tparam Scalar The type used for scalar values */ template <class Scalar> -class Unit : public Component<Scalar, Unit<Scalar> > +class DUNE_DEPRECATED_MSG("Use Components::Constant<id, Scalar> instead. The default is a unit fluid system.") +Unit : public Component<Scalar, Unit<Scalar> > { public: