dune-fem  2.4.1-rc
gridpart/common/capabilities.hh
Go to the documentation of this file.
1 #ifndef DUNE_FEM_GRIDPART_CAPABILITIES_HH
2 #define DUNE_FEM_GRIDPART_CAPABILITIES_HH
3 
4 
5 namespace Dune
6 {
7 
8  namespace Fem
9  {
10 
11  namespace GridPartCapabilities
12  {
16  template< class GridPartType >
17  struct hasGrid
18  {
19  static const bool v = true;
20  };
21 
22 
27  template< class GridPartType >
29  {
30  static const bool v = false;
31  static const unsigned int topologyId = ~0u;
32  };
33 
34 
38  template< class GridPartType >
39  struct isCartesian
40  {
41  static const bool v = false;
42  };
43 
44 
48  template< class GridPartType, int codim >
49  struct hasEntity
50  {
51  static const bool v = false;
52  };
53 
54 
58  template< class GridPartType >
59  struct isParallel
60  {
61  static const bool v = false;
62  };
63 
64 
68  template< class GridPartType, int codim >
70  {
71  static const bool v = false;
72  };
73 
74 
78  template< class GridPartType >
79  struct isConforming
80  {
81  static const bool v = false;
82  };
83 
84 
85  /*
86  * forward
87  * GridPartCapabilities::Something< const GridPartType >
88  * to
89  * GridPartCapabilities::Something< GridPartType >
90  */
91 
92  template< class GridPartType >
93  struct hasGrid< const GridPartType >
94  {
96  };
97 
98 
99  template< class GridPartType >
100  struct hasSingleGeometryType< const GridPartType >
101  {
103  static const unsigned int topologyId
105  };
106 
107 
108  template< class GridPartType >
109  struct isCartesian< const GridPartType >
110  {
112  };
113 
114 
115  template< class GridPartType, int codim >
116  struct hasEntity< const GridPartType, codim >
117  {
119  };
120 
121 
122  template< class GridPartType >
123  struct isParallel< const GridPartType >
124  {
126  };
127 
128 
129  template< class GridPartType, int codim >
130  struct canCommunicate< const GridPartType, codim >
131  {
133  };
134 
135 
136  template< class GridPartType >
137  struct isConforming< const GridPartType >
138  {
140  };
141 
142  } // namespace GridPartCapabilities
143 
144  } // namespace Fem
145 
146 } // namespace Dune
147 
148 #endif // #ifndef DUNE_FEM_GRIDPART_CAPABILITIES_HH
specialize with &#39;true&#39; if implementation supports parallelism (default=false)
Definition: gridpart/common/capabilities.hh:59
specialize with &#39;true&#39; for all codims that a grid implements entities for (default=false) ...
Definition: gridpart/common/capabilities.hh:49
specialize with &#39;true&#39; if implementation guarantees conforming level grids. (default=false) ...
Definition: gridpart/common/capabilities.hh:79
specialize with &#39;false&#39; if grid part has no underlying dune grid (default=true)
Definition: gridpart/common/capabilities.hh:17
static const bool v
Definition: gridpart/common/capabilities.hh:19
specialize with &#39;true&#39; for all codims that a grid can communicate data on (default=false) ...
Definition: gridpart/common/capabilities.hh:69
Definition: coordinate.hh:4
specialize with &#39;true&#39; for if the codimension 0 entity of the grid part has only one possible geometr...
Definition: gridpart/common/capabilities.hh:28
specialize with &#39;true&#39; if the grid part is cartesian (default=false)
Definition: gridpart/common/capabilities.hh:39