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