DUNE-FEM (unstable)

gridpartadapter.hh
1#ifndef DUNE_FEM_GRID_GRIDPARTADAPTER_HH
2#define DUNE_FEM_GRID_GRIDPARTADAPTER_HH
3
5
6#include <dune/fem/gridpart/common/gridview2gridpart.hh>
7
8namespace Dune
9{
10
11 namespace Fem
12 {
13
14 // GridPartAdapter
15 // ---------------
16
17 template< class GridView >
18 class GridPartAdapter
19 : public Fem::GridView2GridPart< GridView, GridPartAdapter< GridView >, false >
20 {
21 typedef GridPartAdapter< GridView > This;
22 typedef Fem::GridView2GridPart< GridView, GridPartAdapter< GridView >, false > Base;
23
24 public:
25 typedef GridView GridViewType;
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 >
36 struct hasGrid< GridPartAdapter< GridView > >
37 {
38 static const bool v = true;
39 };
40
41 template< class GridView >
42 struct hasSingleGeometryType< GridPartAdapter< GridView > >
43 : public Dune::Capabilities::hasSingleGeometryType< typename GridView::Grid >
44 {};
45
46 template< class GridView >
47 struct isCartesian< GridPartAdapter< GridView > >
48 : public Dune::Capabilities::isCartesian< typename GridView::Grid >
49 {};
50
51 template< class GridView, int codim >
52 struct hasEntity< GridPartAdapter< GridView >, codim >
53 : public Dune::Capabilities::hasEntity< typename GridView::Grid, codim >
54 {};
55
56 template< class GridView, int codim >
57 struct canCommunicate< GridPartAdapter< GridView >, codim >
58 : public Dune::Capabilities::canCommunicate< typename GridView::Grid, codim >
59 {};
60
61 template< class GridView >
62 struct isConforming< GridPartAdapter< 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
A few common exception classes.
static constexpr bool conforming
Export if this grid view is guaranteed conforming.
Definition: gridview.hh:128
Dune namespace.
Definition: alignedallocator.hh:13
specialize with 'true' for all codims that a grid can communicate data on (default=false)
Definition: capabilities.hh:97
Specialize with 'true' for all codims that a grid implements entities for. (default=false)
Definition: capabilities.hh:58
Specialize with 'true' for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition: capabilities.hh:27
Specialize with 'true' if the grid is a Cartesian grid. Cartesian grids satisfy the following propert...
Definition: capabilities.hh:48
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 27, 22:29, 2024)