dune-grid 3.0-git
albertagrid/capabilities.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_ALBERTA_CAPABILITIES_HH
4#define DUNE_ALBERTA_CAPABILITIES_HH
5
7#include <dune/geometry/genericgeometry/topologytypes.hh>
8
9
10#if HAVE_ALBERTA
11
12namespace Dune
13{
14
15 // External Forward Declarations
16 // -----------------------------
17
18 template< int dim, int dimworld >
19 class AlbertaGrid;
20
21
22
23 // Capabilities
24 // ------------
25
26 namespace Capabilities
27 {
28
32 template< int dim, int dimworld >
33 struct hasSingleGeometryType< AlbertaGrid< dim, dimworld > >
34 {
35 static const bool v = true;
36 static const unsigned int topologyId = GenericGeometry :: SimplexTopology< dim > :: type :: id ;
37 };
38
39
43 template< int dim, int dimworld, int codim >
44 struct hasEntity< AlbertaGrid< dim, dimworld >, codim >
45 {
46 static const bool v = true;
47 };
48
53 template< int dim, int dimworld >
54 struct isLevelwiseConforming< AlbertaGrid< dim, dimworld > >
55 {
56 static const bool v = false;
57 };
58
62 template< int dim, int dimworld >
63 struct isLeafwiseConforming< AlbertaGrid< dim, dimworld > >
64 {
65 static const bool v = true;
66 };
67
71 template< int dim, int dimworld >
72 struct hasBackupRestoreFacilities< AlbertaGrid< dim, dimworld > >
73 {
74 static const bool v = true;
75 };
76
77
78
79 // non-standard capabilities
80 // -------------------------
81
82 template< class Grid >
84
85 template< int dim, int dimworld >
86 struct hasHierarchicIndexSet< AlbertaGrid< dim, dimworld > >
87 {
88 static const bool v = true;
89 };
90
91 }
92
93}
94
95#endif // #if HAVE_ALBERTA
96
97#endif // #ifndef DUNE_ALBERTA_CAPABILITIES_HH
Include standard header files.
Definition agrid.hh:60
[ provides Dune::Grid ]
Definition agrid.hh:140
Definition albertagrid/capabilities.hh:83
Specialize with 'true' for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition common/capabilities.hh:25
static const bool v
Definition common/capabilities.hh:26
static const unsigned int topologyId
Definition common/capabilities.hh:29
Specialize with 'true' for all codims that a grid implements entities for. (default=false)
Definition common/capabilities.hh:56
static const bool v
Definition common/capabilities.hh:57
Specialize with 'true' if implementation guarantees conforming level grids. (default=false)
Definition common/capabilities.hh:78
static const bool v
Definition common/capabilities.hh:79
Specialize with 'true' if implementation guarantees a conforming leaf grid. (default=false)
Definition common/capabilities.hh:87
static const bool v
Definition common/capabilities.hh:88
Specialize with 'true' if implementation provides backup and restore facilities. (default=false)
Definition common/capabilities.hh:96
static const bool v
Definition common/capabilities.hh:97
A set of traits classes to store static information about grid implementation.