/usr/include/dune/grid/alugrid/2d/capabilities.hh is in libdune-grid-dev 2.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 | // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_ALU2DGRID_CAPABILITIES_HH
#define DUNE_ALU2DGRID_CAPABILITIES_HH
// only include this code, if ENABLE_ALUGRID is defined
#if HAVE_ALUGRID
#include <dune/geometry/genericgeometry/topologytypes.hh>
#include <dune/grid/alugrid/common/declaration.hh>
#include <dune/grid/alugrid/2d/alu2dinclude.hh>
#include <dune/grid/common/capabilities.hh>
/** @file
* @author Robert Kloefkorn
* @brief Capabilities for 2d ALUGrids
*/
namespace Dune
{
template< int dim, int dimworld >
class ALUSimplexGrid;
template< int dim, int dimw >
class ALUCubeGrid;
template< int dim, int dimworld >
class ALUConformGrid;
namespace Capabilities
{
// Capabilities for ALUSimplexGrid
// -------------------------------
/** \brief ALUSimplexGrid has only one geometry type for codim 0 entities
\ingroup ALUSimplexGrid
*/
template< int dimworld >
struct hasSingleGeometryType< ALUSimplexGrid< 2, dimworld > >
{
static const bool v = true;
static const unsigned int topologyId = GenericGeometry :: SimplexTopology< 2 > :: type :: id ;
};
/** \brief ALUSimplexGrid has entities for all codimension
\ingroup ALUSimplexGrid
*/
template< int dimworld, int cdim >
struct hasEntity< ALUSimplexGrid< 2, dimworld >, cdim >
{
static const bool v = true;
};
#if ALU2DGRID_PARALLEL
/** \brief ALUSimplexGrid is parallel
\ingroup ALUSimplexGrid
*/
//- default is false
template< int dimworld >
struct isParallel< ALUSimplexGrid< 2, dimworld > >
{
static const bool v = true;
};
#endif // #if ALU2DGRID_PARALLEL
#if ALU2DGRID_PARALLEL
/** \brief ALUSimplexGrid can communicate
\ingroup ALUSimplexGrid
*/
//- default is false
template< int dimworld >
struct canCommunicate< ALUSimplexGrid< 2, dimworld >, 0 >
{
static const bool v = true;
};
#endif // #if ALU2DGRID_PARALLEL
/** \brief ALUSimplexGrid has conforming level grids
\ingroup ALUSimplexGrid
*/
template< int dimworld >
struct isLevelwiseConforming< ALUSimplexGrid< 2, dimworld > >
{
static const bool v = true;
};
/** \brief ALUSimplexGrid has backup and restore facilities
\ingroup ALUSimplexGrid
*/
template< int dimworld >
struct hasBackupRestoreFacilities< ALUSimplexGrid< 2, dimworld > >
{
static const bool v = true;
};
// Capabilities for ALUCubeGrid
// ----------------------------
/** \brief ALUCubeGrid has only one geometry type for codim 0 entities
\ingroup ALUCubeGrid
*/
template< int wdim >
struct hasSingleGeometryType< ALUCubeGrid< 2, wdim > >
{
static const bool v = true;
static const unsigned int topologyId = GenericGeometry :: CubeTopology< 2 > :: type :: id ;
};
/** \brief ALUCubeGrid has entities for all codimension
\ingroup ALUCubeGrid
*/
template< int wdim, int cdim >
struct hasEntity< Dune::ALUCubeGrid< 2, wdim >, cdim >
{
static const bool v = true;
};
#if ALU2DGRID_PARALLEL
/** \brief ALUCubeGrid is parallel
\ingroup ALUCubeGrid
*/
//- default is false
template< int dimworld >
struct isParallel< ALUCubeGrid< 2, dimworld > >
{
static const bool v = true;
};
#endif // #if ALU2DGRID_PARALLEL
#if ALU2DGRID_PARALLEL
/** \brief ALUCubeGrid can communicate
\ingroup ALUCubeGrid
*/
//- default is false
template< int dimworld >
struct canCommunicate< ALUCubeGrid< 2, dimworld >, 0 >
{
static const bool v = true;
};
#endif // #if ALU2DGRID_PARALLEL
/** \brief ALUCubeGrid has conforming level grids
\ingroup ALUCubeGrid
*/
template<int wdim>
struct isLevelwiseConforming< Dune::ALUCubeGrid< 2, wdim > >
{
static const bool v = true;
};
/** \brief ALUCubeGrid has backup and restore facilities
\ingroup ALUCubeGrid
*/
template<int wdim>
struct hasBackupRestoreFacilities< Dune::ALUCubeGrid< 2, wdim > >
{
static const bool v = true;
};
// Capabilities for ALUConformGrid
// -------------------------------
/** \brief ALUConformGrid has only one geometry type for codim 0 entities
\ingroup ALUConformGrid
*/
template< int dimworld >
struct hasSingleGeometryType< ALUConformGrid< 2, dimworld > >
{
static const bool v = true;
static const unsigned int topologyId = GenericGeometry :: SimplexTopology< 2 > :: type :: id ;
};
/** \brief ALUConformGrid has entities for all codimension
\ingroup ALUConformGrid
*/
template< int dimworld, int cdim >
struct hasEntity< ALUConformGrid< 2, dimworld >, cdim >
{
static const bool v = true;
};
#if ALU2DGRID_PARALLEL
/** \brief ALUConformGrid is parallel
\ingroup ALUConformGrid
*/
//- default is false
template< int dimworld >
struct isParallel< ALUConformGrid< 2, dimworld > >
{
static const bool v = true;
};
#endif // #if ALU2DGRID_PARALLEL
#if ALU2DGRID_PARALLEL
/** \brief ALUConformGrid can communicate
\ingroup ALUConformGrid
*/
//- default is false
template< int dimworld >
struct canCommunicate< ALUConformGrid< 2, dimworld >, 0 >
{
static const bool v = true;
};
#endif // #if ALU2DGRID_PARALLEL
/** \brief ALUConformGrid has a conforming leaf grid
\ingroup ALUConformGrid
*/
template< int dimworld >
struct isLeafwiseConforming< ALUConformGrid< 2, dimworld > >
{
static const bool v = true;
};
/** \brief ALUConformGrid has backup and restore facilities
\ingroup ALUConformGrid
*/
template< int dimworld >
struct hasBackupRestoreFacilities< ALUConformGrid< 2, dimworld > >
{
static const bool v = true;
};
} // namespace Capabilities
} // namespace Dune
#endif // #if HAVE_ALUGRID
#endif // #ifndef DUNE_ALU2DGRID_CAPABILITIES_HH
|