3#ifndef DUNE_AMIRAMESH_READER_HH
4#define DUNE_AMIRAMESH_READER_HH
6#warning Support for AmiraMesh is deprecated and will be removed after Dune 2.8.
17#include <amiramesh/AmiraMesh.h>
29 template<
class Gr
idType>
30 class AmiraMeshReader {
32 using ctype =
typename GridType::ctype;
35 enum {dim = GridType::dimension};
38 static void createDomain(GridFactory<GridType>& factory,
const std::shared_ptr<PSurfaceBoundary<dim-1, ctype> >& boundary);
41 static void buildGrid(GridFactory<GridType>& factory, AmiraMesh* am);
44 static void build2dGrid(GridFactory<GridType>& factory, AmiraMesh* am);
56 static std::unique_ptr<GridType> read(
const std::string& filename);
63 static void read(GridType& grid,
64 const std::string& filename);
79 static std::unique_ptr<GridType> read(
const std::string& filename,
80 const std::shared_ptr<PSurfaceBoundary<dim-1, ctype> >& boundary);
92 static void read(GridType& grid,
93 const std::string& filename,
94 const std::shared_ptr<PSurfaceBoundary<dim-1, ctype> >& boundary);
104 template<
class DiscFuncType>
105 static void readFunction(DiscFuncType& f,
const std::string& filename);
112#include "amiramesh/amirameshreader.cc"
Provide a generic factory class for unstructured grids.
Dune namespace.
Definition: alignedallocator.hh:11
A domain boundary implemented by the psurface library.