From 9035bf2b9dcd12c13c81205ea541bc20944fd0ae Mon Sep 17 00:00:00 2001
From: Felix Schindler <felix.schindler@wwu.de>
Date: Fri, 11 Sep 2015 13:58:50 +0200
Subject: [PATCH] [spaces] add static continuous flag

---
 dune/gdt/playground/spaces/block.hh                 | 3 ++-
 dune/gdt/playground/spaces/cg/fem-localfunctions.hh | 3 ++-
 dune/gdt/playground/spaces/dg/fem-localfunctions.hh | 3 ++-
 dune/gdt/playground/spaces/dg/fem.hh                | 3 ++-
 dune/gdt/playground/spaces/dg/pdelab.hh             | 3 ++-
 dune/gdt/spaces/cg/fem.hh                           | 3 ++-
 dune/gdt/spaces/cg/pdelab.hh                        | 1 +
 dune/gdt/spaces/fv/default.hh                       | 3 ++-
 dune/gdt/spaces/interface.hh                        | 3 ++-
 dune/gdt/spaces/rt/pdelab.hh                        | 3 ++-
 10 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/dune/gdt/playground/spaces/block.hh b/dune/gdt/playground/spaces/block.hh
index e13c3e68a..b03a66143 100644
--- a/dune/gdt/playground/spaces/block.hh
+++ b/dune/gdt/playground/spaces/block.hh
@@ -42,7 +42,8 @@ class BlockTraits
 
 public:
   typedef Block<LocalSpaceType> derived_type;
-  static const int polOrder = LocalSpaceType::polOrder;
+  static const int polOrder    = LocalSpaceType::polOrder;
+  static const bool continuous = false;
   typedef typename LocalSpaceType::BackendType BackendType;
   typedef Mapper::Block<LocalSpaceType> MapperType;
   typedef typename LocalSpaceType::BaseFunctionSetType BaseFunctionSetType;
diff --git a/dune/gdt/playground/spaces/cg/fem-localfunctions.hh b/dune/gdt/playground/spaces/cg/fem-localfunctions.hh
index b5b7a3e1b..7ad4cce79 100644
--- a/dune/gdt/playground/spaces/cg/fem-localfunctions.hh
+++ b/dune/gdt/playground/spaces/cg/fem-localfunctions.hh
@@ -54,7 +54,8 @@ class FemLocalfunctionsBasedTraits
 public:
   typedef GridPartImp GridPartType;
   typedef typename GridPartType::GridViewType GridViewType;
-  static const int polOrder = polynomialOrder;
+  static const int polOrder    = polynomialOrder;
+  static const bool continuous = true;
   static_assert(polOrder >= 1, "Wrong polOrder given!");
 
 private:
diff --git a/dune/gdt/playground/spaces/dg/fem-localfunctions.hh b/dune/gdt/playground/spaces/dg/fem-localfunctions.hh
index b3ab3da60..3c0590ef2 100644
--- a/dune/gdt/playground/spaces/dg/fem-localfunctions.hh
+++ b/dune/gdt/playground/spaces/dg/fem-localfunctions.hh
@@ -57,7 +57,8 @@ class FemLocalfunctionsBasedTraits
 public:
   typedef GridPartImp GridPartType;
   typedef typename GridPartType::GridViewType GridViewType;
-  static const int polOrder = polynomialOrder;
+  static const int polOrder    = polynomialOrder;
+  static const bool continuous = false;
 
 private:
   typedef typename GridPartType::ctype DomainFieldType;
diff --git a/dune/gdt/playground/spaces/dg/fem.hh b/dune/gdt/playground/spaces/dg/fem.hh
index 2209fbf35..51d5a7d4a 100644
--- a/dune/gdt/playground/spaces/dg/fem.hh
+++ b/dune/gdt/playground/spaces/dg/fem.hh
@@ -50,7 +50,8 @@ public:
   typedef FemBased<GridPartImp, polynomialOrder, RangeFieldImp, rangeDim, rangeDimCols> derived_type;
   typedef GridPartImp GridPartType;
   typedef typename GridPartType::GridViewType GridViewType;
-  static const int polOrder = polynomialOrder;
+  static const int polOrder    = polynomialOrder;
+  static const bool continuous = false;
   static_assert(polOrder >= 1, "Wrong polOrder given!");
 
 private:
diff --git a/dune/gdt/playground/spaces/dg/pdelab.hh b/dune/gdt/playground/spaces/dg/pdelab.hh
index 0fcf24882..3cbe2861d 100644
--- a/dune/gdt/playground/spaces/dg/pdelab.hh
+++ b/dune/gdt/playground/spaces/dg/pdelab.hh
@@ -54,7 +54,8 @@ class PdelabBasedTraits
 public:
   typedef PdelabBased<GridViewImp, polynomialOrder, RangeFieldImp, rangeDim, rangeDimCols> derived_type;
   typedef GridViewImp GridViewType;
-  static const int polOrder = polynomialOrder;
+  static const int polOrder    = polynomialOrder;
+  static const bool continuous = false;
 
 private:
   typedef typename GridViewType::ctype DomainFieldType;
diff --git a/dune/gdt/spaces/cg/fem.hh b/dune/gdt/spaces/cg/fem.hh
index 2bc0aed1b..eca8e7db9 100644
--- a/dune/gdt/spaces/cg/fem.hh
+++ b/dune/gdt/spaces/cg/fem.hh
@@ -48,7 +48,8 @@ public:
   typedef FemBased<GridPartImp, polynomialOrder, RangeFieldImp, rangeDim, rangeDimCols> derived_type;
   typedef GridPartImp GridPartType;
   typedef typename GridPartType::GridViewType GridViewType;
-  static const int polOrder = polynomialOrder;
+  static const int polOrder    = polynomialOrder;
+  static const bool continuous = true;
   static_assert(polOrder >= 1, "Wrong polOrder given!");
 
 private:
diff --git a/dune/gdt/spaces/cg/pdelab.hh b/dune/gdt/spaces/cg/pdelab.hh
index 0d831cce6..27c33812e 100644
--- a/dune/gdt/spaces/cg/pdelab.hh
+++ b/dune/gdt/spaces/cg/pdelab.hh
@@ -59,6 +59,7 @@ public:
   typedef GridViewImp GridViewType;
   static const int polOrder = polynomialOrder;
   static_assert(polOrder >= 1, "Wrong polOrder given!");
+  static const bool continuous = true;
 
 private:
   typedef typename GridViewType::ctype DomainFieldType;
diff --git a/dune/gdt/spaces/fv/default.hh b/dune/gdt/spaces/fv/default.hh
index 6e07db332..885ade73f 100644
--- a/dune/gdt/spaces/fv/default.hh
+++ b/dune/gdt/spaces/fv/default.hh
@@ -41,7 +41,8 @@ class DefaultTraits
 {
 public:
   typedef Default<GridViewImp, RangeFieldImp, rangeDim, rangeDimCols> derived_type;
-  static const int polOrder = 0;
+  static const int polOrder    = 0;
+  static const bool continuous = false;
   typedef GridViewImp GridViewType;
   typedef typename GridViewType::IndexSet BackendType;
   typedef typename GridViewType::template Codim<0>::Entity EntityType;
diff --git a/dune/gdt/spaces/interface.hh b/dune/gdt/spaces/interface.hh
index a4a837b18..7bd8aaa3a 100644
--- a/dune/gdt/spaces/interface.hh
+++ b/dune/gdt/spaces/interface.hh
@@ -79,7 +79,8 @@ class SpaceInterface : public Stuff::CRTPInterface<SpaceInterface<Traits, domain
 {
 public:
   typedef typename Traits::derived_type derived_type;
-  static const int polOrder = Traits::polOrder;
+  static const int polOrder    = Traits::polOrder;
+  static const bool continuous = Traits::continuous;
   typedef typename Traits::BackendType BackendType;
   typedef typename Traits::MapperType MapperType;
   typedef typename Traits::BaseFunctionSetType BaseFunctionSetType;
diff --git a/dune/gdt/spaces/rt/pdelab.hh b/dune/gdt/spaces/rt/pdelab.hh
index 6978ecf0d..1dbba3813 100644
--- a/dune/gdt/spaces/rt/pdelab.hh
+++ b/dune/gdt/spaces/rt/pdelab.hh
@@ -57,7 +57,8 @@ class PdelabBasedTraits
 public:
   typedef PdelabBased<GridViewImp, polynomialOrder, RangeFieldImp, rangeDim, rangeDimCols> derived_type;
   typedef GridViewImp GridViewType;
-  static const int polOrder = polynomialOrder;
+  static const int polOrder    = polynomialOrder;
+  static const bool continuous = false;
   static_assert(polOrder == 0, "Untested!");
   static_assert(rangeDim == GridViewType::dimension, "Untested!");
   static_assert(rangeDimCols == 1, "Untested!");
-- 
GitLab