5 #ifndef DUNE_DGFPARSER_DGFIDENTITYGRID_HH 6 #define DUNE_DGFPARSER_DGFIDENTITYGRID_HH 8 #include <dune/common/typetraits.hh> 20 template<
class HostGr
id >
32 : dgfHostFactory_( input, comm ),
35 HostGrid *hostGrid = dgfHostFactory_.grid();
36 assert( hostGrid != 0 );
37 grid_ =
new Grid( *hostGrid );
42 : dgfHostFactory_( filename, comm ),
45 HostGrid *hostGrid = dgfHostFactory_.grid();
46 assert( hostGrid != 0 );
47 std::ifstream input( filename.c_str() );
48 grid_ =
new Grid( *hostGrid );
56 template<
class Intersection >
62 template<
class Intersection >
71 return dgfHostFactory_.template numParameters< codim >();
74 template<
class Entity >
90 template<
class HostGr
id >
106 #endif // #ifndef DUNE_DGFPARSER_DGFIDENTITYGRID_HH concept Entity
Model of a grid entity.
Definition: concepts/entity.hh:119
MPIHelper::MPICommunicator MPICommunicator
Definition: dgfidentitygrid.hh:26
static int refineStepsForHalf()
Definition: dgfidentitygrid.hh:93
Grid::template Codim< dimension >::Entity Vertex
Definition: dgfidentitygrid.hh:28
bool wasInserted(const Intersection &intersection) const
Definition: dgfidentitygrid.hh:57
static double refineWeight()
Definition: dgfidentitygrid.hh:98
Grid abstract base classThis class is the base class for all grid implementations. Although no virtual functions are used we call it abstract since its methods do not contain an implementation but forward to the methods of the derived class via the Barton-Nackman trick.
Definition: common/grid.hh:375
int numParameters() const
Definition: dgfidentitygrid.hh:69
Some simple static information for a given GridType.
Definition: io/file/dgfparser/dgfparser.hh:55
Provides a meta grid that is identical to its host.
Definition: identitygrid.hh:33
DGFGridFactory(const std::string &filename, MPICommunicator comm=MPIHelper::getCommunicator())
Definition: dgfidentitygrid.hh:40
Grid::template Codim< 0 >::Entity Element
Definition: dgfidentitygrid.hh:27
static double refineWeight()
DGFGridFactory(std::istream &input, MPICommunicator comm=MPIHelper::getCommunicator())
Definition: dgfidentitygrid.hh:30
int boundaryId(const Intersection &intersection) const
Definition: dgfidentitygrid.hh:63
G Grid
Definition: dgfgridfactory.hh:39
Grid * grid() const
Definition: dgfidentitygrid.hh:51
static int refineStepsForHalf()
number of globalRefine steps needed to refuce h by 0.5
Include standard header files.
Definition: agrid.hh:59
IdentityGrid< HostGrid > Grid
Definition: dgfidentitygrid.hh:23
provides access to host grid objects from GeometryGrid
Definition: identitygrid.hh:37
static constexpr int dimension
The dimension of the grid.
Definition: common/grid.hh:387
Intersection of a mesh entity of codimension 0 ("element") with a "neighboring" element or with the d...
Definition: albertagrid/dgfparser.hh:28
Wrapper class for entities.
Definition: common/entity.hh:65
std::vector< double > & parameter(const Entity &entity)
Definition: dgfidentitygrid.hh:75
static const int dimension
Definition: dgfgridfactory.hh:40