capabilities.hh
1 // -*- mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=2 sw=2 sts=2:
3 #ifndef DUNE_POLYHEDRALGRID_CAPABILITIES_HH
4 #define DUNE_POLYHEDRALGRID_CAPABILITIES_HH
5 
6 //- dune-grid includes
7 #include <dune/grid/common/capabilities.hh>
8 
9 //- dune-metagrid includes
10 #include <dune/grid/polyhedralgrid/declaration.hh>
11 
12 namespace Dune
13 {
14 
15  namespace Capabilities
16  {
17 
18  // Capabilities from dune-grid
19  // ---------------------------
20 
21  template< int dim, int dimworld >
22  struct hasSingleGeometryType< PolyhedralGrid< dim, dimworld > >
23  {
24  static const bool v = false;
25  static const unsigned int topologyId = ~0u;
26  };
27 
28 
29  template< int dim, int dimworld >
30  struct isCartesian< PolyhedralGrid< dim, dimworld > >
31  {
32  static const bool v = false;
33  };
34 
35 
36  template< int dim, int dimworld, int codim >
37  struct hasEntity< PolyhedralGrid< dim, dimworld >, codim >
38  {
39  static const bool v = (codim == 0 || codim == 1 || codim == dim);
40  };
41 
42 
43 #if ! DUNE_VERSION_NEWER(DUNE_GRID, 2, 5)
44  template< int dim, int dimworld >
45  struct isParallel< PolyhedralGrid< dim, dimworld > >
46  {
47  static const bool v = false;
48  };
49 #endif
50 
51 
52  template< int dim, int dimworld, int codim >
53  struct canCommunicate< PolyhedralGrid< dim, dimworld >, codim >
54  {
55  static const bool v = false;
56  };
57 
58 
59  template< int dim, int dimworld >
60  struct hasBackupRestoreFacilities< PolyhedralGrid< dim, dimworld > >
61  {
62  static const bool v = false;
63  };
64 
65  template< int dim, int dimworld >
66  struct isLevelwiseConforming< PolyhedralGrid< dim, dimworld > >
67  {
68  static const bool v = false;
69  };
70 
71  template< int dim, int dimworld >
72  struct isLeafwiseConforming< PolyhedralGrid< dim, dimworld > >
73  {
74  static const bool v = false;
75  };
76 
77  template< int dim, int dimworld >
78  struct threadSafe< PolyhedralGrid< dim, dimworld > >
79  {
80  static const bool v = false;
81  };
82 
83  template< int dim, int dimworld >
84  struct viewThreadSafe< PolyhedralGrid< dim, dimworld > >
85  {
86  static const bool v = false;
87  };
88 
89  } // namespace Capabilities
90 
91 } // namespace Dune
92 
93 #endif // #ifndef DUNE_POLYHEDRALGRID_CAPABILITIES_HH
Holds the implementation of the CpGrid as a pimple.
Definition: OpmParserIncludes.hpp:42
identical grid wrapper
Definition: declaration.hh:10