Go to the documentation of this file.
3 #ifndef DUNE_ALBERTA_ALBERTAREADER_HH
4 #define DUNE_ALBERTA_ALBERTAREADER_HH
16 template<
class Gr
id >
31 "AlbertaReader: world dimension must match ALBERTA's world dimension.");
47 macroData_.
read( fileName,
false );
51 for(
int i = 0; i < numVertices; ++i )
53 FieldVector< ctype, dimensionworld > v;
61 std::vector< unsigned int > vertices(
dimension+1 );
63 for(
int i = 0; i < numElements; ++i )
67 vertices[ j ] =
id[ j ];
68 typedef typename GenericGeometry::SimplexTopology< dimension >::type Topology;
79 #endif // #if HAVE_ALBERTA
virtual void insertVertex(const FieldVector< ctype, dimworld > &pos)
Insert a vertex into the coarse grid.
Definition: common/gridfactory.hh:279
Different resources needed by all grid implementations.
Provide a generic factory class for unstructured grids.
provides a wrapper for ALBERTA's macro_data structure
ElementId & element(int i) const
Definition: macrodata.hh:243
Include standard header files.
Definition: agrid.hh:59
int elementCount() const
Definition: macrodata.hh:66
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:178
static const int dimension
Definition: albertareader.hh:26
GlobalVector & vertex(int i) const
Definition: macrodata.hh:252
void read(const std::string &filename, bool binary=false)
Definition: macrodata.hh:410
ct ctype
Define type used for coordinates in grid module.
Definition: common/grid.hh:522
Definition: albertareader.hh:17
The dimension of the grid.
Definition: common/grid.hh:387
static const int dimWorld
Definition: misc.hh:43
int ElementId[numVertices]
Definition: macrodata.hh:46
void readGrid(const std::string &fileName, GridFactory &factory)
Definition: albertareader.hh:44
void release()
release the macro data structure
Definition: macrodata.hh:125
Dune::GridFactory< Grid > GridFactory
Definition: albertareader.hh:22
The dimension of the world the grid lives in.
Definition: common/grid.hh:393
virtual void insertElement(const GeometryType &type, const std::vector< unsigned int > &vertices)
Insert an element into the coarse grid.
Definition: common/gridfactory.hh:290
ALBERTA REAL_D GlobalVector
Definition: misc.hh:47
Grid::ctype ctype
Definition: albertareader.hh:24
static const int dimensionworld
Definition: albertareader.hh:27
int vertexCount() const
Definition: macrodata.hh:61
AlbertaReader()
Definition: albertareader.hh:41