From 4f2a3ebd604ca8a2f16c60e3098d765ad50bb0de Mon Sep 17 00:00:00 2001
From: Felix Schindler <felix.schindler@wwu.de>
Date: Thu, 25 Jan 2018 15:43:45 +0100
Subject: [PATCH] [spaces.dg] add gdt backend to provider

---
 dune/gdt/spaces/dg.hh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dune/gdt/spaces/dg.hh b/dune/gdt/spaces/dg.hh
index 2f15cc489..7a69cecfd 100644
--- a/dune/gdt/spaces/dg.hh
+++ b/dune/gdt/spaces/dg.hh
@@ -19,6 +19,7 @@
 #include <dune/xt/grid/gridprovider/provider.hh>
 
 #include "interface.hh"
+#include "dg/default.hh"
 #include "dg/dune-fem-wrapper.hh"
 #include "../playground/spaces/dg/dune-pdelab-wrapper.hh"
 #include "../playground/spaces/dg/dune-functions-wrapper.hh"
@@ -61,6 +62,14 @@ private:
     typedef GDT::DuneFemDgSpaceWrapper<GridLayerType, p, R, r, rC> Type;
   };
 
+  template <class G, int p, class R, size_t r, size_t rC>
+  struct SpaceChooser<G, p, R, r, rC, GDT::Backends::gdt>
+  {
+    static_assert(rC == 1, "");
+    static_assert(r == 1, "");
+    typedef GDT::DiscontinuousLagrangeSpace<GridLayerType, p, R> Type;
+  };
+
   template <class G, int p, class R, size_t r, size_t rC>
   struct SpaceChooser<G, p, R, r, rC, GDT::Backends::functions>
   {
-- 
GitLab