dune-grid
2.11
Toggle main menu visibility
Loading...
Searching...
No Matches
dune
grid
albertagrid
albertagrid/capabilities.hh
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
2
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4
// vi: set et ts=4 sw=2 sts=2:
5
#ifndef DUNE_ALBERTA_CAPABILITIES_HH
6
#define DUNE_ALBERTA_CAPABILITIES_HH
7
8
#include <dune/geometry/type.hh>
9
10
#include <
dune/grid/common/capabilities.hh
>
11
12
#if HAVE_ALBERTA
13
14
namespace
Dune
15
{
16
17
// External Forward Declarations
18
// -----------------------------
19
20
template
<
int
dim,
int
dimworld >
21
class
AlbertaGrid
;
22
23
24
25
// Capabilities
26
// ------------
27
28
namespace
Capabilities
29
{
30
34
template
<
int
dim,
int
dimworld >
35
struct
hasSingleGeometryType
<
AlbertaGrid
< dim, dimworld > >
36
{
37
static
const
bool
v
=
true
;
38
static
const
unsigned
int
topologyId
= GeometryTypes::simplex(dim).id();
39
};
40
41
45
template
<
int
dim,
int
dimworld,
int
codim >
46
struct
hasEntity
<
AlbertaGrid
< dim, dimworld >, codim >
47
{
48
static
const
bool
v
=
true
;
49
};
50
56
template
<
int
dim,
int
dimworld,
int
codim >
57
struct
hasEntityIterator
<
AlbertaGrid
< dim, dimworld >, codim >
58
{
59
static
const
bool
v
=
true
;
60
};
61
66
template
<
int
dim,
int
dimworld >
67
struct
isLevelwiseConforming
<
AlbertaGrid
< dim, dimworld > >
68
{
69
static
const
bool
v
=
false
;
70
};
71
75
template
<
int
dim,
int
dimworld >
76
struct
isLeafwiseConforming
<
AlbertaGrid
< dim, dimworld > >
77
{
78
static
const
bool
v
=
true
;
79
};
80
84
template
<
int
dim,
int
dimworld >
85
struct
hasBackupRestoreFacilities
<
AlbertaGrid
< dim, dimworld > >
86
{
87
static
const
bool
v
=
true
;
88
};
89
90
91
92
// non-standard capabilities
93
// -------------------------
94
95
template
<
class
Gr
id
>
96
struct
hasHierarchicIndexSet
;
97
98
template
<
int
dim,
int
dimworld >
99
struct
hasHierarchicIndexSet
<
AlbertaGrid
< dim, dimworld > >
100
{
101
static
const
bool
v
=
true
;
102
};
103
104
}
105
106
}
107
108
#endif
// #if HAVE_ALBERTA
109
110
#endif
// #ifndef DUNE_ALBERTA_CAPABILITIES_HH
Dune
Include standard header files.
Definition
agrid.hh:60
Dune::Capabilities
Contains all capabilities classes.
Definition
albertagrid/capabilities.hh:29
Dune::AlbertaGrid
[ provides Dune::Grid ]
Definition
agrid.hh:109
Dune::Capabilities::hasSingleGeometryType< AlbertaGrid< dim, dimworld > >::v
static const bool v
Definition
albertagrid/capabilities.hh:37
Dune::Capabilities::hasSingleGeometryType< AlbertaGrid< dim, dimworld > >::topologyId
static const unsigned int topologyId
Definition
albertagrid/capabilities.hh:38
Dune::Capabilities::hasEntity< AlbertaGrid< dim, dimworld >, codim >::v
static const bool v
Definition
albertagrid/capabilities.hh:48
Dune::Capabilities::hasEntityIterator< AlbertaGrid< dim, dimworld >, codim >::v
static const bool v
Definition
albertagrid/capabilities.hh:59
Dune::Capabilities::isLevelwiseConforming< AlbertaGrid< dim, dimworld > >::v
static const bool v
Definition
albertagrid/capabilities.hh:69
Dune::Capabilities::isLeafwiseConforming< AlbertaGrid< dim, dimworld > >::v
static const bool v
Definition
albertagrid/capabilities.hh:78
Dune::Capabilities::hasBackupRestoreFacilities< AlbertaGrid< dim, dimworld > >::v
static const bool v
Definition
albertagrid/capabilities.hh:87
Dune::Capabilities::hasHierarchicIndexSet
Definition
albertagrid/capabilities.hh:96
Dune::Capabilities::hasHierarchicIndexSet< AlbertaGrid< dim, dimworld > >::v
static const bool v
Definition
albertagrid/capabilities.hh:101
Dune::Capabilities::hasSingleGeometryType
Specialize with 'true' for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition
common/capabilities.hh:27
Dune::Capabilities::hasEntity
Specialize with 'true' for all codims that a grid implements entities for. (default=false).
Definition
common/capabilities.hh:58
Dune::Capabilities::hasEntityIterator
specialize with 'true' for all codims that a grid provides an iterator for (default=hasEntity<codim>:...
Definition
common/capabilities.hh:74
Dune::Capabilities::isLevelwiseConforming
Specialize with 'true' if implementation guarantees conforming level grids. (default=false).
Definition
common/capabilities.hh:106
Dune::Capabilities::isLeafwiseConforming
Specialize with 'true' if implementation guarantees a conforming leaf grid. (default=false).
Definition
common/capabilities.hh:115
Dune::Capabilities::hasBackupRestoreFacilities
Specialize with 'true' if implementation provides backup and restore facilities. (default=false).
Definition
common/capabilities.hh:124
capabilities.hh
A set of traits classes to store static information about grid implementation.
Generated by
1.17.0