From f4fa6fa08c4e21a8c2c837e092a59692d2ac4f1c Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Wed, 20 Dec 2017 16:59:17 +0100
Subject: [PATCH] [fluidsystem] Deprecate OneP FluidSystem. Use Liquid/GasPhase
 directly

---
 dumux/material/fluidsystems/1p.hh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dumux/material/fluidsystems/1p.hh b/dumux/material/fluidsystems/1p.hh
index a476c59b9d..599e4a9d35 100644
--- a/dumux/material/fluidsystems/1p.hh
+++ b/dumux/material/fluidsystems/1p.hh
@@ -24,9 +24,12 @@
 #ifndef DUMUX_1P_FLUIDSYSTEM_HH
 #define DUMUX_1P_FLUIDSYSTEM_HH
 
+#warning "This header is deprecated! Use LiquidPhase (liquidphase.hh) or GasPhase (gasphase.hh) directly"
+
 #include <limits>
 #include <cassert>
 
+#include <dune/common/deprecated.hh>
 #include <dune/common/exceptions.hh>
 #include "base.hh"
 
@@ -44,7 +47,7 @@ namespace FluidSystems {
  * FluidSystems::GasPhase<Component> may be used.
  */
 template <class Scalar, class FluidType>
-class OneP
+class DUNE_DEPRECATED_MSG("OneP fluid system is deprecated! Use LiquidPhase or GasPhase directly") OneP
     : public BaseFluidSystem<Scalar, OneP<Scalar, FluidType> >
 {
     using ThisType = OneP<Scalar, FluidType>;
-- 
GitLab