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