3#ifndef DUNE_GRID_ALBERTAGRID_BACKUPRESTORE_HH
4#define DUNE_GRID_ALBERTAGRID_BACKUPRESTORE_HH
22 template<
int dim,
int dimworld >
28 static void backup (
const Grid &grid,
const std::string &filename )
37 static void backup (
const Grid &grid, std::ostream &stream )
39 DUNE_THROW( NotImplemented,
"backup / restore using streams not implemented." );
57 DUNE_THROW( NotImplemented,
"backup / restore using streams not implemented." );
Include standard header files.
Definition: agrid.hh:58
[ provides Dune::Grid ]
Definition: agrid.hh:107
bool readGrid(const std::string &filename, ctype &time)
read Grid from file filename and store time of mesh in time
Definition: albertagrid.cc:583
bool writeGrid(const std::string &filename, ctype time) const
write Grid to file in Xdr
Definition: albertagrid.cc:573
static Grid * restore(const std::string &filename)
Definition: albertagrid/backuprestore.hh:43
AlbertaGrid< dim, dimworld > Grid
Definition: albertagrid/backuprestore.hh:25
static void backup(const Grid &grid, std::ostream &stream)
Definition: albertagrid/backuprestore.hh:37
static void backup(const Grid &grid, const std::string &filename)
Definition: albertagrid/backuprestore.hh:28
static Grid * restore(std::istream &stream)
Definition: albertagrid/backuprestore.hh:55
facility for writing and reading grids
Definition: common/backuprestore.hh:41