dune-fem  2.8-git
gridpart/filteredgridpart/capabilities.hh
Go to the documentation of this file.
1 #ifndef DUNE_FEM_GRIDPART_IDGRIDPART_CAPABILITIES_HH
2 #define DUNE_FEM_GRIDPART_IDGRIDPART_CAPABILITIES_HH
3 
4 #include <dune/geometry/type.hh>
5 
7 
8 namespace Dune
9 {
10 
11  namespace Fem
12  {
13 
14  // Forward declaration
15  // -------------------
16 
17  template< class, class, bool >
18  class FilteredGridPart;
19 
20 
21 
22  namespace GridPartCapabilities
23  {
24 
25  template< class HostGridPartImp, class FilterImp, bool useFilteredIndexSet >
26  struct hasGrid< FilteredGridPart< HostGridPartImp, FilterImp, useFilteredIndexSet > >
27  {
28  static const bool v = hasGrid< HostGridPartImp >::v;
29  };
30 
31 
32  template< class HostGridPartImp, class FilterImp, bool useFilteredIndexSet >
33  struct hasSingleGeometryType< FilteredGridPart< HostGridPartImp, FilterImp, useFilteredIndexSet > >
34  {
37  };
38 
39 
40  template< class HostGridPartImp, class FilterImp, bool useFilteredIndexSet >
41  struct isCartesian< FilteredGridPart< HostGridPartImp, FilterImp, useFilteredIndexSet > >
42  {
43  static const bool v = isCartesian< HostGridPartImp >::v;
44  };
45 
46 
47  template< class HostGridPartImp, class FilterImp, bool useFilteredIndexSet, int codim >
48  struct hasEntity< FilteredGridPart< HostGridPartImp, FilterImp, useFilteredIndexSet >, codim >
49  {
51  };
52 
53 
54  template< class HostGridPartImp, class FilterImp, bool useFilteredIndexSet, int codim >
55  struct canCommunicate< FilteredGridPart< HostGridPartImp, FilterImp, useFilteredIndexSet >, codim >
56  {
58  };
59 
60 
61  template< class HostGridPartImp, class FilterImp, bool useFilteredIndexSet >
62  struct isConforming< FilteredGridPart< HostGridPartImp, FilterImp, useFilteredIndexSet > >
63  {
65  };
66 
67  } // namespace GridPartCapabilities
68 
69  } // namespace Fem
70 
71 } // namespace Dune
72 
73 #endif // #ifndef DUNE_FEM_GRIDPART_IDGRIDPART_CAPABILITIES_HH
Definition: bindguard.hh:11
specialize with 'false' if grid part has no underlying dune grid (default=true)
Definition: gridpart/common/capabilities.hh:18
static const bool v
Definition: gridpart/common/capabilities.hh:19
specialize with 'true' for if the codimension 0 entity of the grid part has only one possible geometr...
Definition: gridpart/common/capabilities.hh:29
static const bool v
Definition: gridpart/common/capabilities.hh:30
static const unsigned int topologyId
Definition: gridpart/common/capabilities.hh:31
specialize with 'true' if the grid part is cartesian (default=false)
Definition: gridpart/common/capabilities.hh:40
static const bool v
Definition: gridpart/common/capabilities.hh:41
specialize with 'true' for all codims that a grid implements entities for (default=false)
Definition: gridpart/common/capabilities.hh:50
static const bool v
Definition: gridpart/common/capabilities.hh:51
specialize with 'true' for all codims that a grid can communicate data on (default=false)
Definition: gridpart/common/capabilities.hh:60
static const bool v
Definition: gridpart/common/capabilities.hh:61
specialize with 'true' if implementation guarantees conforming level grids. (default=false)
Definition: gridpart/common/capabilities.hh:70
static const bool v
Definition: gridpart/common/capabilities.hh:71
A FilteredGridPart allows to extract a set of entities from a grid satisfying a given constrainted de...
Definition: filteredgridpart.hh:228