3#ifndef DUNE_MMESH_INTERFACE_DGFPARSER_HH
4#define DUNE_MMESH_INTERFACE_DGFPARSER_HH
12#include <dune/grid/common/intersection.hh>
13#include <dune/grid/io/file/dgfparser/blocks/projection.hh>
14#include <dune/grid/io/file/dgfparser/dgfparser.hh>
15#include <dune/grid/io/file/dgfparser/parser.hh>
18#include <dune/mmesh/grid/explicitgridfactory.hh>
25 template<
class Gr
idImp,
class IntersectionImp >
30 template<
class MMeshImp >
31 struct DGFGridFactory< MMeshInterfaceGrid<MMeshImp> >
33 typedef MMeshInterfaceGrid<MMeshImp> Grid;
34 const static int dimension = Grid::dimension;
35 typedef MPIHelper::MPICommunicator MPICommunicatorType;
36 typedef typename Grid::template Codim<0>::Entity Element;
37 typedef typename Grid::template Codim<dimension>::Entity Vertex;
39 explicit DGFGridFactory ( std::istream &input,
40 MPICommunicatorType comm = MPIHelper::getCommunicator() );
41 explicit DGFGridFactory (
const std::string &filename,
42 MPICommunicatorType comm = MPIHelper::getCommunicator() );
47 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
52 template<
class Intersection >
53 bool wasInserted (
const Intersection &intersection )
const
55 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
60 template<
class Intersection >
61 int boundaryId (
const Intersection &intersection )
const
63 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
68 std::vector< double > parameter (
const Element &element )
70 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
75 std::vector< double > parameter (
const Vertex &vertex )
77 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
82 bool haveBoundaryParameters ()
const
84 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
88 template <
class GG,
class II >
89 const DGFBoundaryParameter::type
90 boundaryParameter (
const Intersection< GG, II > & intersection )
const
92 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
93 return DGFBoundaryParameter::type();
97 int numParameters ()
const
99 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
105 DuneGridFormatParser dgf_;
113 template<
class MMeshImp >
114 inline DGFGridFactory< MMeshInterfaceGrid<MMeshImp> >
115 ::DGFGridFactory ( std::istream &input, MPICommunicatorType comm )
118 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
122 template<
class MMeshImp >
123 inline DGFGridFactory< MMeshInterfaceGrid<MMeshImp> >
124 ::DGFGridFactory (
const std::string &filename, MPICommunicatorType comm )
127 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");