From b2271c3f15814de161e9a24b891ece0208eb3a14 Mon Sep 17 00:00:00 2001
From: Hamza Oukili <hamza.oukili@iws.uni-stuttgart.de>
Date: Thu, 16 Mar 2023 19:21:28 +0000
Subject: [PATCH] Add if HAVE_ECL_INPUT to cpgridmanager.hh

---
 dumux/io/grid/cpgridmanager.hh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dumux/io/grid/cpgridmanager.hh b/dumux/io/grid/cpgridmanager.hh
index 2e7f9fe59e..32c1667a4c 100644
--- a/dumux/io/grid/cpgridmanager.hh
+++ b/dumux/io/grid/cpgridmanager.hh
@@ -46,6 +46,8 @@
 
 #include <dumux/common/parameters.hh>
 
+#if HAVE_ECL_INPUT
+
 namespace Dumux {
 
 /*!
@@ -106,6 +108,10 @@ private:
 
 } // end namespace Dumux
 
+#else
+#warning "Eclipse input support in opm-common is required to use the cornerpoint grid manager"
+#endif // HAVE_ECL_INPUT
+
 #endif // HAVE_OPM_GRID
 
 #endif
-- 
GitLab