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>
24template <
class Gr
idImp,
class IntersectionImp>
29template <
class MMeshImp>
30struct DGFGridFactory<MMeshInterfaceGrid<MMeshImp> > {
31 typedef MMeshInterfaceGrid<MMeshImp> Grid;
32 const static int dimension = Grid::dimension;
33 typedef MPIHelper::MPICommunicator MPICommunicatorType;
34 typedef typename Grid::template Codim<0>::Entity Element;
35 typedef typename Grid::template Codim<dimension>::Entity Vertex;
37 explicit DGFGridFactory(
39 MPICommunicatorType comm = MPIHelper::getCommunicator());
40 explicit DGFGridFactory(
41 const std::string &filename,
42 MPICommunicatorType comm = MPIHelper::getCommunicator());
46 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
51 template <
class Intersection>
52 bool wasInserted(
const Intersection &intersection)
const {
53 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
58 template <
class Intersection>
59 int boundaryId(
const Intersection &intersection)
const {
60 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
65 std::vector<double> parameter(
const Element &element) {
66 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
71 std::vector<double> parameter(
const Vertex &vertex) {
72 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
77 bool haveBoundaryParameters()
const {
78 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
82 template <
class GG,
class II>
83 const DGFBoundaryParameter::type boundaryParameter(
84 const Intersection<GG, II> &intersection)
const {
85 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
86 return DGFBoundaryParameter::type();
90 int numParameters()
const {
91 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
97 DuneGridFormatParser dgf_;
104template <
class MMeshImp>
105inline DGFGridFactory<MMeshInterfaceGrid<MMeshImp> >::DGFGridFactory(
106 std::istream &input, MPICommunicatorType comm)
108 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");
112template <
class MMeshImp>
113inline DGFGridFactory<MMeshInterfaceGrid<MMeshImp> >::DGFGridFactory(
114 const std::string &filename, MPICommunicatorType comm)
116 DUNE_THROW(NotImplemented,
"DGFGridFactory for MMeshInterfaceGrid");