dune-grid
2.1.1
|
write a GridView to a DGF file More...
#include <dune/grid/io/file/dgfparser/dgfwriter.hh>
Public Types | |
typedef GV | GridView |
type of grid view | |
typedef GridView::Grid | Grid |
type of underlying hierarchical grid | |
Public Member Functions | |
DGFWriter (const GridView &gridView) | |
constructor | |
void | write (std::ostream &gridout) const |
write the GridView into a std::ostreamm | |
void | write (const std::string &fileName) const |
write the GridView to a file | |
Static Public Attributes | |
static const int | dimGrid = GridView::dimension |
dimension of the grid |
write a GridView to a DGF file
The DGFWriter allows create a DGF file from a given GridView. It allows for the easy creation of file format converters.
GV | GridView to write in DGF format |
typedef GridView::Grid Dune::DGFWriter< GV >::Grid |
type of underlying hierarchical grid
typedef GV Dune::DGFWriter< GV >::GridView |
type of grid view
Dune::DGFWriter< GV >::DGFWriter | ( | const GridView & | gridView | ) | [inline] |
constructor
[in] | gridView | grid view to operate on |
void Dune::DGFWriter< GV >::write | ( | std::ostream & | gridout | ) | const [inline] |
write the GridView into a std::ostreamm
gridout | std::ostream to write the grid to |
References Dune::GenericReferenceElement< ctype, dim >::size(), and Dune::GenericReferenceElement< ctype, dim >::subEntity().
Referenced by main().
void Dune::DGFWriter< GV >::write | ( | const std::string & | fileName | ) | const [inline] |
write the GridView to a file
[in] | fileName | name of the write to write the grid to |
const int Dune::DGFWriter< GV >::dimGrid = GridView::dimension [static] |
dimension of the grid