GridFormat 0.2.1
I/O-Library for grid-like data structures
Loading...
Searching...
No Matches
GridFormat::Dune::GridFactoryAdapter< Grid > Class Template Reference

Adapter around a Dune::GridFactory to be compatible with GridFormat::Concepts::GridFactory. Can be used to export a grid from a reader directly into a Dune::GridFactory. For instance: More...

#include <dune.hpp>

Detailed Description

template<typename Grid>
class GridFormat::Dune::GridFactoryAdapter< Grid >
GridFormat::Reader reader; reader.open(filename);
Dune::GridFactory<DuneGrid> factory;
{
reader.export_grid(adapter);
}
// ... use dune grid factory
Adapter around a Dune::GridFactory to be compatible with GridFormat::Concepts::GridFactory....
Definition: dune.hpp:1072
void open(const std::string &filename)
Open the given grid file.
Definition: reader.hpp:78
void export_grid(Factory &factory) const
Export the grid read from the file into the given grid factory.
Definition: reader.hpp:173
Interface to the readers for all supported file formats.
Definition: reader.hpp:94

Public Types

using ctype = typename Grid::ctype
 
using DuneFactory = ::Dune::GridFactory< Grid >
 

Public Member Functions

 GridFactoryAdapter (DuneFactory &factory)
 
template<std::size_t _space_dim>
void insert_point (const std::array< ctype, _space_dim > &point)
 
void insert_cell (const CellType &ct, const std::vector< std::size_t > &corners)
 

Static Public Attributes

static constexpr int space_dim = Grid::dimensionworld
 

The documentation for this class was generated from the following file: