5 #ifndef DUNE_GRID_ALBERTAGRID_BACKUPRESTORE_HH 6 #define DUNE_GRID_ALBERTAGRID_BACKUPRESTORE_HH 24 template<
int dim,
int dimworld >
30 static void backup (
const Grid &grid,
const std::string &filename )
41 DUNE_THROW( NotImplemented,
"backup / restore using streams not implemented." );
59 DUNE_THROW( NotImplemented,
"backup / restore using streams not implemented." );
65 #endif // #ifndef DUNE_GRID_ALBERTAGRID_BACKUPRESTORE_HH static void backup(const Grid &grid, const std::string &filename)
write a hierarchic grid to disk
Definition: albertagrid/backuprestore.hh:30
bool writeGrid(const std::string &filename, ctype time) const
write Grid to file in Xdr
Definition: albertagrid.cc:575
static Grid * restore(const std::string &filename)
read a hierarchic grid from disk
Definition: albertagrid/backuprestore.hh:45
bool readGrid(const std::string &filename, ctype &time)
read Grid from file filename and store time of mesh in time
Definition: albertagrid.cc:585
AlbertaGrid< dim, dimworld > Grid
Definition: albertagrid/backuprestore.hh:27
facility for writing and reading grids
Definition: common/backuprestore.hh:42
Include standard header files.
Definition: agrid.hh:59
concept Grid
Requirements for implementations of the Dune::Grid interface.The Grid concept defines interface requi...
Definition: concepts/grid.hh:109
[ provides Dune::Grid ]
Definition: agrid.hh:106
static Grid * restore(std::istream &)
read a hierarchic grid from disk
Definition: albertagrid/backuprestore.hh:57
static void backup(const Grid &, std::ostream &)
write a hierarchic grid to disk
Definition: albertagrid/backuprestore.hh:39