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