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>
24 struct GmshReader< Dune::MovingMesh< dim > >
28 static std::shared_ptr<Grid> read (
const std::string& fileName,
bool verbose =
true,
bool insertBoundarySegments =
true)
30 Dune::GmshGridFactory<Grid> gmshFactory( fileName );
31 return gmshFactory.grid();
34 static void read (Dune::GridFactory<Grid>& factory,
const std::string& fileName,
35 bool verbose =
true,
bool insertBoundarySegments =
true)
37 Dune::GmshGridFactory<Grid> gmshFactory( factory, fileName );
40 static void read (Dune::GridFactory<Grid>& factory,
const std::string& fileName, std::vector<int>& boundaryIDs, std::vector<int>& elementsIDs,
bool verbose =
false,
bool boundarySegments =
false)
42 Dune::GmshGridFactory<Grid> gmshFactory( factory, fileName );
45 std::vector<int> elementsIDs;
The MMesh class templatized by the CGAL host grid type and the dimension.
Definition: mmesh.hh:140