Go to the documentation of this file.
3 #ifndef DUNE_DGFPARSER_DGFIDENTITYGRID_HH
4 #define DUNE_DGFPARSER_DGFIDENTITYGRID_HH
6 #include <dune/common/typetraits.hh>
18 template<
class HostGr
id >
25 typedef typename Grid::template Codim<0>::Entity
Element;
26 typedef typename Grid::template Codim<dimension>::Entity
Vertex;
30 : dgfHostFactory_( input, comm ),
33 HostGrid *hostGrid = dgfHostFactory_.grid();
34 assert( hostGrid != 0 );
35 grid_ =
new Grid( *hostGrid );
40 : dgfHostFactory_( filename, comm ),
43 HostGrid *hostGrid = dgfHostFactory_.grid();
44 assert( hostGrid != 0 );
45 std::ifstream input( filename.c_str() );
46 grid_ =
new Grid( *hostGrid );
54 template<
class Intersection >
60 template<
class Intersection >
69 return dgfHostFactory_.template numParameters< codim >();
72 template<
class Entity >
88 template<
class HostGr
id >
104 #endif // #ifndef DUNE_DGFPARSER_DGFIDENTITYGRID_HH
Wrapper class for entities.
Definition: common/entity.hh:63
Grid::template Codim< dimension >::Entity Vertex
Definition: dgfidentitygrid.hh:26
static int refineStepsForHalf()
Definition: dgfidentitygrid.hh:91
static double refineWeight()
Definition: dgfidentitygrid.hh:96
Grid abstract base class.
Definition: common/grid.hh:373
static int refineStepsForHalf()
number of globalRefine steps needed to refuce h by 0.5
G Grid
Definition: dgfgridfactory.hh:37
DGFGridFactory(std::istream &input, MPICommunicator comm=MPIHelper::getCommunicator())
Definition: dgfidentitygrid.hh:28
int boundaryId(const Intersection &intersection) const
Definition: dgfidentitygrid.hh:61
bool wasInserted(const Intersection &intersection) const
Definition: dgfidentitygrid.hh:55
Grid::template Codim< 0 >::Entity Element
Definition: dgfidentitygrid.hh:25
MPIHelper::MPICommunicator MPICommunicator
Definition: dgfidentitygrid.hh:24
Provides a meta grid that is identical to its host.
Definition: identitygrid.hh:32
DGFGridFactory(const std::string &filename, MPICommunicator comm=MPIHelper::getCommunicator())
Definition: dgfidentitygrid.hh:38
std::vector< double > & parameter(const Entity &entity)
Definition: dgfidentitygrid.hh:73
Grid * grid() const
Definition: dgfidentitygrid.hh:49
static double refineWeight()
Some simple static information for a given GridType.
Definition: io/file/dgfparser/dgfparser.hh:50
Intersection of a mesh entity of codimension 0 ("element") with a "neighboring" element or with the d...
Definition: common/grid.hh:344
Include standard header files.
Definition: agrid.hh:58
@ dimension
The dimension of the grid.
Definition: common/grid.hh:387
int numParameters() const
Definition: dgfidentitygrid.hh:67
const static int dimension
Definition: dgfgridfactory.hh:38
provides access to host grid objects from GeometryGrid
Definition: identitygrid.hh:36
IdentityGrid< HostGrid > Grid
Definition: dgfidentitygrid.hh:21