5#ifndef DUNE_DGFPARSER_DGFIDENTITYGRID_HH
6#define DUNE_DGFPARSER_DGFIDENTITYGRID_HH
8#include <dune/common/typetraits.hh>
20 template<
class HostGr
id >
27 typedef typename Grid::template Codim<0>::Entity
Element;
28 typedef typename Grid::template Codim<dimension>::Entity
Vertex;
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 >
Include standard header files.
Definition: agrid.hh:60
Definition: dgfgridfactory.hh:38
G Grid
Definition: dgfgridfactory.hh:39
static const int dimension
Definition: dgfgridfactory.hh:40
Intersection of a mesh entity of codimension 0 ("element") with a "neighboring" element or with the d...
Definition: common/intersection.hh:164
Wrapper class for entities.
Definition: common/entity.hh:66
Grid abstract base class.
Definition: common/grid.hh:375
static constexpr int 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:28
IdentityGrid< HostGrid > Grid
Definition: dgfidentitygrid.hh:23
std::vector< double > & parameter(const Entity &entity)
Definition: dgfidentitygrid.hh:75
int numParameters() const
Definition: dgfidentitygrid.hh:69
Grid * grid() const
Definition: dgfidentitygrid.hh:51
DGFGridFactory(const std::string &filename, MPICommunicator comm=MPIHelper::getCommunicator())
Definition: dgfidentitygrid.hh:40
DGFGridFactory(std::istream &input, MPICommunicator comm=MPIHelper::getCommunicator())
Definition: dgfidentitygrid.hh:30
int boundaryId(const Intersection &intersection) const
Definition: dgfidentitygrid.hh:63
MPIHelper::MPICommunicator MPICommunicator
Definition: dgfidentitygrid.hh:26
Grid::template Codim< 0 >::Entity Element
Definition: dgfidentitygrid.hh:27
bool wasInserted(const Intersection &intersection) const
Definition: dgfidentitygrid.hh:57
static int refineStepsForHalf()
Definition: dgfidentitygrid.hh:93
static double refineWeight()
Definition: dgfidentitygrid.hh:98
Some simple static information for a given GridType.
Definition: io/file/dgfparser/dgfparser.hh:56
static double refineWeight()
static int refineStepsForHalf()
number of globalRefine steps needed to refuce h by 0.5