3#ifndef DUNE_MMESH_GRID_GMSHREADER_HH
4#define DUNE_MMESH_GRID_GMSHREADER_HH
12#include <dune/grid/common/intersection.hh>
13#include <dune/grid/io/file/gmshreader.hh>
16#include <dune/mmesh/grid/gmshgridfactory.hh>
23struct GmshReader<Dune::MovingMesh<dim> > {
26 static std::shared_ptr<Grid> read(
const std::string& fileName,
28 bool insertBoundarySegments =
true) {
29 Dune::GmshGridFactory<Grid> gmshFactory(fileName);
30 return gmshFactory.grid();
33 static void read(Dune::GridFactory<Grid>& factory,
34 const std::string& fileName,
bool verbose =
true,
35 bool insertBoundarySegments =
true) {
36 Dune::GmshGridFactory<Grid> gmshFactory(factory, fileName);
39 static void read(Dune::GridFactory<Grid>& factory,
40 const std::string& fileName, std::vector<int>& boundaryIDs,
41 std::vector<int>& elementsIDs,
bool verbose =
false,
42 bool boundarySegments =
false) {
43 Dune::GmshGridFactory<Grid> gmshFactory(factory, fileName);
46 std::vector<int> elementsIDs;
The MMesh class templatized by the CGAL host grid type and the dimension. .
Definition: mmesh.hh:158