From 73ef4a60a60dcb62c6bdda60ba96e0c3cc86dfb6 Mon Sep 17 00:00:00 2001
From: Oliver Sander <oliver.sander@tu-dresden.de>
Date: Tue, 2 Jan 2018 11:41:20 +0100
Subject: [PATCH] Specialize IsNumber for adouble

Otherwise certain matrix-copying methods will not work anymore.
---
 src/harmonicmaps.cc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/harmonicmaps.cc b/src/harmonicmaps.cc
index d0a4405f..cb9734e9 100644
--- a/src/harmonicmaps.cc
+++ b/src/harmonicmaps.cc
@@ -7,6 +7,15 @@
 #include <adolc/adouble.h>
 #include <dune/fufem/utilities/adolcnamespaceinjections.hh>
 
+#include <dune/common/typetraits.hh>
+namespace Dune {
+  template <>
+  struct IsNumber<adouble>
+  {
+    constexpr static bool value = true;
+  };
+}
+
 #include <array>
 
 #include <dune/common/bitsetvector.hh>
-- 
GitLab