dune-fem 2.12-git
Loading...
Searching...
No Matches
gridpartadapter.hh
Go to the documentation of this file.
1#ifndef DUNE_FEM_GRID_GRIDPARTADAPTER_HH
2#define DUNE_FEM_GRID_GRIDPARTADAPTER_HH
3
5
7
8namespace Dune
9{
10
11 namespace Fem
12 {
13
14 // GridPartAdapter
15 // ---------------
16
17 template< class GridView >
19 : public Fem::GridView2GridPart< GridView, GridPartAdapter< GridView >, false >
20 {
23
24 public:
26 typedef typename Base::GridType GridType;
27
28 explicit GridPartAdapter ( const GridView &gridView ) : Base( gridView ) {}
29 };
30
31
32 namespace GridPartCapabilities
33 {
34
35 template< class GridView >
37 {
38 static const bool v = true;
39 };
40
41 template< class GridView >
43 : public Dune::Capabilities::hasSingleGeometryType< typename GridView::Grid >
44 {};
45
46 template< class GridView >
48 : public Dune::Capabilities::isCartesian< typename GridView::Grid >
49 {};
50
51 template< class GridView, int codim >
53 : public Dune::Capabilities::hasEntity< typename GridView::Grid, codim >
54 {};
55
56 template< class GridView, int codim >
58 : public Dune::Capabilities::canCommunicate< typename GridView::Grid, codim >
59 {};
60
61 template< class GridView >
63 {
64 static const bool v = GridView::conforming;
65 };
66
67 } // namespace GridPartCapabilities
68
69 } // namespace Fem
70
71} // namespace Dune
72
73#endif // #ifndef DUNE_FEM_GRID_GRIDPARTADAPTER_HH
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
specialize with 'true' if the grid part is cartesian (default=false)
Definition gridpart/common/capabilities.hh:40
specialize with 'true' for all codims that a grid implements entities for (default=false)
Definition gridpart/common/capabilities.hh:50
specialize with 'true' for all codims that a grid can communicate data on (default=false)
Definition gridpart/common/capabilities.hh:60
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
Definition gridpartadapter.hh:20
GridPartAdapter(const GridView &gridView)
Definition gridpartadapter.hh:28
Base::GridType GridType
Definition gridpartadapter.hh:26
GridView GridViewType
Definition gridpartadapter.hh:25
Definition gridview2gridpart.hh:83
BaseType::GridType GridType
type of Grid implementation
Definition gridview2gridpart.hh:90
const GridView & gridView() const
return reference to internal grid view
Definition gridview2gridpart.hh:240