From 7c944fbc3da6db7d38d90219c1abc0dd8e074b17 Mon Sep 17 00:00:00 2001
From: Nicolas Schwenck <nicolas.schwenck@iws.uni-stuttgart.de>
Date: Wed, 8 Jul 2015 13:18:54 +0000
Subject: [PATCH] [test/multidomain/*] added guardian macros for the case of
 missing multidomain

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@15025 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 .../2cnistokes2p2cni/test_2cnistokes2p2cni.cc      | 14 ++++++++++++++
 .../2cnizeroeq2p2cni/test_2cnizeroeq2p2cni.cc      | 14 ++++++++++++++
 test/multidomain/2cstokes2p2c/test_2cstokes2p2c.cc | 14 ++++++++++++++
 test/multidomain/2czeroeq2p2c/test_2czeroeq2p2c.cc | 14 ++++++++++++++
 4 files changed, 56 insertions(+)

diff --git a/test/multidomain/2cnistokes2p2cni/test_2cnistokes2p2cni.cc b/test/multidomain/2cnistokes2p2cni/test_2cnistokes2p2cni.cc
index 64abdff3a3..0f71f0e612 100644
--- a/test/multidomain/2cnistokes2p2cni/test_2cnistokes2p2cni.cc
+++ b/test/multidomain/2cnistokes2p2cni/test_2cnistokes2p2cni.cc
@@ -29,6 +29,8 @@
 #include <dune/common/parallel/mpihelper.hh>
 #include <dune/common/parametertreeparser.hh>
 
+#if HAVE_DUNE_MULTIDOMAIN
+
 #include <dumux/common/start.hh>
 #include <dumux/io/interfacemeshcreator.hh>
 
@@ -270,3 +272,15 @@ int main(int argc, char** argv)
     typedef TTAG(TwoCNIStokesTwoPTwoCNIProblem) ProblemTypeTag;
     return startLocal<ProblemTypeTag>(argc, argv, printUsage);
 }
+
+#else
+
+#warning You need to have dune-multidomain installed to run this test
+
+int main()
+{
+    std::cerr << "You need to have dune-multidomain installed to run this test\n";
+    return 77;
+}
+
+#endif
diff --git a/test/multidomain/2cnizeroeq2p2cni/test_2cnizeroeq2p2cni.cc b/test/multidomain/2cnizeroeq2p2cni/test_2cnizeroeq2p2cni.cc
index 2d55ac65a0..db3457f449 100644
--- a/test/multidomain/2cnizeroeq2p2cni/test_2cnizeroeq2p2cni.cc
+++ b/test/multidomain/2cnizeroeq2p2cni/test_2cnizeroeq2p2cni.cc
@@ -29,6 +29,8 @@
 #include <dune/common/parallel/mpihelper.hh>
 #include <dune/common/parametertreeparser.hh>
 
+#if HAVE_DUNE_MULTIDOMAIN
+
 #include <dumux/common/start.hh>
 #include <dumux/io/interfacemeshcreator.hh>
 
@@ -341,3 +343,15 @@ int main(int argc, char** argv)
     typedef TTAG(TwoCNIZeroEqTwoPTwoCNIProblem) ProblemTypeTag;
     return startLocal<ProblemTypeTag>(argc, argv, printUsage);
 }
+
+#else
+
+#warning You need to have dune-multidomain installed to run this test
+
+int main()
+{
+    std::cerr << "You need to have dune-multidomain installed to run this test\n";
+    return 77;
+}
+
+#endif
diff --git a/test/multidomain/2cstokes2p2c/test_2cstokes2p2c.cc b/test/multidomain/2cstokes2p2c/test_2cstokes2p2c.cc
index 7d6483d999..d4902436f9 100644
--- a/test/multidomain/2cstokes2p2c/test_2cstokes2p2c.cc
+++ b/test/multidomain/2cstokes2p2c/test_2cstokes2p2c.cc
@@ -29,6 +29,8 @@
 #include <dune/common/parallel/mpihelper.hh>
 #include <dune/common/parametertreeparser.hh>
 
+#if HAVE_DUNE_MULTIDOMAIN
+
 #include <dumux/common/start.hh>
 #include <dumux/io/interfacemeshcreator.hh>
 
@@ -265,3 +267,15 @@ int main(int argc, char** argv)
     typedef TTAG(TwoCStokesTwoPTwoCProblem) ProblemTypeTag;
     return startLocal<ProblemTypeTag>(argc, argv, printUsage);
 }
+
+#else
+
+#warning You need to have dune-multidomain installed to run this test
+
+int main()
+{
+    std::cerr << "You need to have dune-multidomain installed to run this test\n";
+    return 77;
+}
+
+#endif
diff --git a/test/multidomain/2czeroeq2p2c/test_2czeroeq2p2c.cc b/test/multidomain/2czeroeq2p2c/test_2czeroeq2p2c.cc
index 84e01a85a2..ae12d128d4 100644
--- a/test/multidomain/2czeroeq2p2c/test_2czeroeq2p2c.cc
+++ b/test/multidomain/2czeroeq2p2c/test_2czeroeq2p2c.cc
@@ -29,6 +29,8 @@
 #include <dune/common/parallel/mpihelper.hh>
 #include <dune/common/parametertreeparser.hh>
 
+#if HAVE_DUNE_MULTIDOMAIN
+
 #include <dumux/common/start.hh>
 #include <dumux/io/interfacemeshcreator.hh>
 
@@ -329,3 +331,15 @@ int main(int argc, char** argv)
     typedef TTAG(TwoCZeroEqTwoPTwoCProblem) ProblemTypeTag;
     return startLocal<ProblemTypeTag>(argc, argv, printUsage);
 }
+
+#else
+
+#warning You need to have dune-multidomain installed to run this test
+
+int main()
+{
+    std::cerr << "You need to have dune-multidomain installed to run this test\n";
+    return 77;
+}
+
+#endif
-- 
GitLab