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;
29 MPICommunicator comm = MPIHelper::getCommunicator() )
30 : dgfHostFactory_( input, comm ),
33 HostGrid *hostGrid = dgfHostFactory_.grid();
34 assert( hostGrid != 0 );
35 grid_ =
new Grid( *hostGrid );
39 MPICommunicator comm = MPIHelper::getCommunicator() )
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 MPIHelper::MPICommunicator MPICommunicator
Definition: dgfidentitygrid.hh:24
Grid * grid() const
Definition: dgfidentitygrid.hh:49
static double refineWeight()
Intersection of a mesh entity of codimension 0 ("element") with a "neighboring" element or with the d...
Definition: albertagrid/dgfparser.hh:26
bool wasInserted(const Intersection &intersection) const
Definition: dgfidentitygrid.hh:55
provides access to host grid objects from GeometryGrid
Definition: identitygrid.hh:36
static int refineStepsForHalf()
Definition: dgfidentitygrid.hh:91
G Grid
Definition: dgfgridfactory.hh:37
static int refineStepsForHalf()
number of globalRefine steps needed to refuce h by 0.5
Grid::template Codim< dimension >::Entity Vertex
Definition: dgfidentitygrid.hh:26
DGFGridFactory(std::istream &input, MPICommunicator comm=MPIHelper::getCommunicator())
Definition: dgfidentitygrid.hh:28
IdentityGrid< HostGrid > Grid
Definition: dgfidentitygrid.hh:21
int boundaryId(const Intersection &intersection) const
Definition: dgfidentitygrid.hh:61
Include standard header files.
Definition: agrid.hh:59
int numParameters() const
Definition: dgfidentitygrid.hh:67
static double refineWeight()
Definition: dgfidentitygrid.hh:96
Wrapper class for entities.
Definition: common/entity.hh:64
Some simple static information for a given GridType.
Definition: io/file/dgfparser/dgfparser.hh:54
DGFGridFactory(const std::string &filename, MPICommunicator comm=MPIHelper::getCommunicator())
Definition: dgfidentitygrid.hh:38
Grid::template Codim< 0 >::Entity Element
Definition: dgfidentitygrid.hh:25
Provides a meta grid that is identical to its host.
Definition: identitygrid.hh:32
static const int dimension
Definition: dgfgridfactory.hh:38
The dimension of the grid.
Definition: common/grid.hh:387
std::vector< double > & parameter(const Entity &entity)
Definition: dgfidentitygrid.hh:73