/usr/include/dune/grid/albertagrid/gridfamily.hh is in libdune-grid-dev 2.2.1-2.
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 | #ifndef DUNE_ALBERTAGRID_GRIDFAMILTY_HH
#define DUNE_ALBERTAGRID_GRIDFAMILTY_HH
/** \file
* \author Martin Nolte
* \brief provides the GridFamily for AlbertaGrid
*/
#include <dune/common/collectivecommunication.hh>
#include <dune/grid/common/geometry.hh>
#include <dune/grid/common/entity.hh>
#include <dune/grid/common/entitypointer.hh>
#include <dune/grid/common/intersection.hh>
#include <dune/grid/common/intersectioniterator.hh>
#include <dune/grid/common/entityiterator.hh>
#include <dune/grid/albertagrid/misc.hh>
#include <dune/grid/albertagrid/gridview.hh>
#if HAVE_ALBERTA
namespace Dune
{
// External Forward Declarations
// -----------------------------
template< int dim, int dimworld >
class AlbertaGrid;
template< int codim, int dim, class GridImp >
class AlbertaGridEntity;
template< int codim, class GridImp >
class AlbertaGridEntityPointer;
template< int codim, class Grid >
class AlbertaGridEntitySeed;
template< int mydim, int cdim, class GridImp >
class AlbertaGridGeometry;
template< int mydim, int cdim, class GridImp >
class AlbertaGridGlobalGeometry;
template< int dim, int dimworld >
class AlbertaGridHierarchicIndexSet;
template< class GridImp >
class AlbertaGridHierarchicIterator;
template< class GridImp >
class AlbertaGridLeafIntersection;
template< class GridImp >
class AlbertaGridLeafIntersectionIterator;
template< int dim, int dimworld >
class AlbertaGridIdSet;
template< int dim, int dimworld >
class AlbertaGridIndexSet;
template< int codim, PartitionIteratorType pitype, class GridImp >
class AlbertaGridLeafIterator;
template< int codim, PartitionIteratorType pitype, class GridImp >
class AlbertaGridLevelIterator;
// AlbertaGridFamily
// -----------------
template <int dim, int dimworld>
struct AlbertaGridFamily
{
typedef AlbertaGrid< dim, dimworld > GridImp;
typedef Alberta::Real ctype;
static const int dimension = dim;
static const int dimensionworld = dimworld;
typedef AlbertaGridIndexSet< dim, dimworld > LevelIndexSetImp;
typedef AlbertaGridIndexSet< dim, dimworld > LeafIndexSetImp;
typedef AlbertaGridIdSet< dim, dimworld > IdSetImp;
typedef unsigned int IdType;
struct Traits
{
typedef GridImp Grid;
typedef Dune::Intersection< const GridImp, AlbertaGridLeafIntersection > LeafIntersection;
typedef Dune::Intersection< const GridImp, AlbertaGridLeafIntersection > LevelIntersection;
typedef Dune::IntersectionIterator
< const GridImp, AlbertaGridLeafIntersectionIterator, AlbertaGridLeafIntersection >
LeafIntersectionIterator;
typedef Dune::IntersectionIterator
< const GridImp, AlbertaGridLeafIntersectionIterator, AlbertaGridLeafIntersection >
LevelIntersectionIterator;
typedef Dune::EntityIterator< 0, const GridImp, AlbertaGridHierarchicIterator< const GridImp > > HierarchicIterator;
typedef IdType GlobalIdType;
typedef IdType LocalIdType;
template< int cd >
struct Codim
{
// IMPORTANT: Codim<codim>::Geometry == Geometry<dim-codim,dimw>
typedef AlbertaGridGlobalGeometry< dim-cd, dimworld, const GridImp > GeometryImpl;
typedef AlbertaGridGeometry< dim-cd, dim, const GridImp > LocalGeometryImpl;
typedef Dune::Geometry< dim-cd, dimworld, const GridImp, AlbertaGridGlobalGeometry > Geometry;
typedef Dune::Geometry< dim-cd, dim, const GridImp, AlbertaGridGeometry > LocalGeometry;
typedef Dune::Entity< cd, dim, const GridImp, AlbertaGridEntity > Entity;
typedef AlbertaGridEntityPointer< cd, const GridImp > EntityPointerImpl;
typedef Dune::EntityPointer< const GridImp, EntityPointerImpl > EntityPointer;
typedef AlbertaGridEntitySeed< cd, const GridImp > EntitySeed;
template <PartitionIteratorType pitype>
struct Partition
{
typedef Dune::EntityIterator< cd, const GridImp, AlbertaGridLevelIterator< cd, pitype, const GridImp > > LevelIterator;
typedef Dune::EntityIterator< cd, const GridImp, AlbertaGridLeafIterator< cd, pitype, const GridImp > > LeafIterator;
};
typedef typename Partition< All_Partition >::LevelIterator LevelIterator;
typedef typename Partition< All_Partition >::LeafIterator LeafIterator;
};
template <PartitionIteratorType pitype>
struct Partition
{
typedef Dune::GridView<AlbertaLevelGridViewTraits<const GridImp,pitype> > LevelGridView;
typedef Dune::GridView<AlbertaLeafGridViewTraits<const GridImp,pitype> > LeafGridView;
};
typedef IndexSet< GridImp, LevelIndexSetImp, int > LevelIndexSet;
typedef IndexSet< GridImp, LeafIndexSetImp, int > LeafIndexSet;
typedef AlbertaGridHierarchicIndexSet< dim, dimworld > HierarchicIndexSet;
typedef IdSet<GridImp,IdSetImp,IdType> GlobalIdSet;
typedef IdSet<GridImp,IdSetImp,IdType> LocalIdSet;
typedef Dune::CollectiveCommunication< No_Comm > CollectiveCommunication;
};
};
}
#endif // #if HAVE_ALBERTA
#endif // #ifndef DUNE_ALBERTAGRID_GRIDFAMILTY_HH
|