From 2c1ab045fb17b1f1dedb49a3af27eaaf945c7d6b Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Tue, 14 Nov 2017 14:46:53 +0100
Subject: [PATCH] Deprecated unit component. Use Components::Constant component

---
 dumux/material/components/unit.hh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dumux/material/components/unit.hh b/dumux/material/components/unit.hh
index b623fcd810..807653b608 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:
-- 
GitLab