From f292f64a13ad5dbc67d26d981b471b24b68f64dd Mon Sep 17 00:00:00 2001
From: Jonathan Youett <youett@math.fu-berlin.de>
Date: Tue, 23 Oct 2018 09:19:08 +0200
Subject: [PATCH] Only define material when Adolc is found

---
 dune/elasticity/materials/adolcmaterial.hh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dune/elasticity/materials/adolcmaterial.hh b/dune/elasticity/materials/adolcmaterial.hh
index 5f12724..6b54e9c 100644
--- a/dune/elasticity/materials/adolcmaterial.hh
+++ b/dune/elasticity/materials/adolcmaterial.hh
@@ -3,6 +3,7 @@
 #ifndef DUNE_ELASTICITY_MATERIALS_ADOLC_MATERIAL_HH
 #define DUNE_ELASTICITY_MATERIALS_ADOLC_MATERIAL_HH
 
+#if HAVE_ADOLC
 #include <dune/fufem/assemblers/localassemblers/adolclocalenergy.hh>
 #include <dune/fufem/assemblers/localassemblers/adolclinearizationassembler.hh>
 #include <dune/fufem/assemblers/localassemblers/adolchessianassembler.hh>
@@ -124,5 +125,5 @@ private:
     //! Local hessian
     AdolcHessian localHessian_;
 };
-
+#endif // HAVE_ADOLC
 #endif
-- 
GitLab