/usr/include/dune/grid/alugrid/common/capabilities.hh is in libdune-grid-dev 2.4.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 | // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_ALUGRID_CAPABILITIES_HH
#define DUNE_ALUGRID_CAPABILITIES_HH
// only include this code, if ENABLE_ALUGRID is defined
#if HAVE_ALUGRID
#include <dune/common/deprecated.hh>
#include <dune/grid/common/capabilities.hh>
#include <dune/grid/alugrid/common/declaration.hh>
#include <dune/grid/alugrid/common/checkparallel.hh>
#include <dune/geometry/genericgeometry/topologytypes.hh>
/** @file
* @author Robert Kloefkorn
* @brief Capabilities for ALUGrid
*/
namespace Dune
{
namespace Capabilities
{
// Capabilities for ALUGrid
// -------------------------------
/** \brief ALUGrid has only one geometry type for codim 0 entities
\ingroup ALUGrid
*/
template< int dim, int dimworld, ALUGridElementType eltype, ALUGridRefinementType refinementtype, class Comm >
struct hasSingleGeometryType< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
{
static const bool v = true;
static const unsigned int topologyId = (eltype == cube) ?
GenericGeometry :: CubeTopology< dim > :: type :: id :
GenericGeometry :: SimplexTopology< dim > :: type :: id ;
};
/** \brief ALUGrid has entities for all codimension
\ingroup ALUGrid
*/
template< int dim, int dimworld, ALUGridElementType eltype, ALUGridRefinementType refinementtype, class Comm, int cdim >
struct hasEntity< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, cdim >
{
static const bool v = true;
};
/** \brief ALUGrid is parallel when Comm == MPI_Comm
\ingroup ALUGrid
*/
template< int dim, int dimworld, ALUGridElementType eltype, ALUGridRefinementType refinementtype >
struct DUNE_DEPRECATED_MSG("Capabilities::isParallel will be removed after dune-grid-2.4.") isParallel< ALUGrid< dim, dimworld, eltype, refinementtype, No_Comm > >
{
static const bool DUNE_DEPRECATED_MSG("Capabilities::isParallel will be removed after dune-grid-2.4.") v = false;
};
/** \brief ALUGrid is parallel when Comm == MPI_Comm
\ingroup ALUGrid
*/
#if ALU3DGRID_PARALLEL
template< ALUGridElementType eltype, ALUGridRefinementType refinementtype >
struct DUNE_DEPRECATED_MSG("Capabilities::isParallel will be removed after dune-grid-2.4.") isParallel< ALUGrid< 3, 3, eltype, refinementtype, MPI_Comm > >
{
static const bool DUNE_DEPRECATED_MSG("Capabilities::isParallel will be removed after dune-grid-2.4.") v = true;
};
#endif
/** \brief ALUGrid can communicate when Comm == MPI_Comm
\ingroup ALUGrid
*/
template< int dim, int dimworld, ALUGridElementType eltype, ALUGridRefinementType refinementtype, int codim >
struct canCommunicate< ALUGrid< dim, dimworld, eltype, refinementtype, No_Comm >, codim >
{
static const bool v = false;
};
/** \brief ALUGrid can communicate
\ingroup ALUGrid
*/
#if ALU3DGRID_PARALLEL
template< ALUGridElementType eltype, ALUGridRefinementType refinementtype, int codim >
struct canCommunicate< ALUGrid< 3, 3, eltype, refinementtype, MPI_Comm >, codim >
{
static const bool v = true;
};
#endif
/** \brief ALUGrid has conforming level grids
\ingroup ALUGrid
*/
template< int dim, int dimworld, ALUGridElementType eltype, ALUGridRefinementType refinementtype, class Comm >
struct isLevelwiseConforming< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
{
static const bool v = refinementtype == nonconforming;
};
/** \brief ALUGrid has conforming level grids
\ingroup ALUGrid
*/
template< int dim, int dimworld, ALUGridElementType eltype, ALUGridRefinementType refinementtype, class Comm >
struct isLeafwiseConforming< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
{
static const bool v = refinementtype == conforming ;
};
/** \brief ALUGrid has backup and restore facilities
\ingroup ALUGrid
*/
template< int dim, int dimworld, ALUGridElementType eltype, ALUGridRefinementType refinementtype, class Comm >
struct hasBackupRestoreFacilities< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
{
static const bool v = true;
};
} // end namespace Capabilities
} //end namespace Dune
#endif // #if HAVE_ALUGRID
#endif // #ifdef DUNE_ALUGRID_CAPABILITIES_HH
|