From 224edb2364adb0e41a601f5e07200715e7ad18a5 Mon Sep 17 00:00:00 2001
From: Bernd Flemisch <bernd@iws.uni-stuttgart.de>
Date: Tue, 21 Aug 2012 09:22:13 +0000
Subject: [PATCH] test mpfa2p: make compile without having ALUGrid installed

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@8910 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 test/decoupled/2p/test_mpfa2p.cc | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/test/decoupled/2p/test_mpfa2p.cc b/test/decoupled/2p/test_mpfa2p.cc
index 26b6a00b2d..f5130e1a3e 100644
--- a/test/decoupled/2p/test_mpfa2p.cc
+++ b/test/decoupled/2p/test_mpfa2p.cc
@@ -22,6 +22,8 @@
 
 #include "config.h"
 
+#if HAVE_ALUGRID 
+
 #include "test_mpfa2pproblem.hh"
 #include <dumux/common/start.hh>
 
@@ -145,3 +147,17 @@ int main(int argc, char** argv)
         return startReturn;
     }
 }
+
+#else 
+
+#warning You need to have ALUGrid installed to run this test
+
+#include <iostream>
+
+int main()
+{
+    std::cerr << "You need to have ALUGrid installed to run this test\n";
+    return 1;
+}
+
+#endif
\ No newline at end of file
-- 
GitLab