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." );
Include standard header files.
Definition agrid.hh:60
[ provides Dune::Grid ]
Definition agrid.hh:109
bool readGrid(const std::string &filename, ctype &time)
read Grid from file filename and store time of mesh in time
Definition albertagrid.cc:585
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
AlbertaGrid< dim, dimworld > Grid
Definition albertagrid/backuprestore.hh:27
static void backup(const Grid &grid, const std::string &filename)
write a hierarchic grid to disk
Definition albertagrid/backuprestore.hh:30
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
facility for writing and reading grids
Definition common/backuprestore.hh:43