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." );
43 static Grid *
restore (
const std::string &filename )
45 Grid *grid =
new Grid;
55 static Grid *
restore ( std::istream &stream )
57 DUNE_THROW( NotImplemented,
"backup / restore using streams not implemented." );
63 #endif // #ifndef DUNE_GRID_ALBERTAGRID_BACKUPRESTORE_HH
bool readGridXdr(const std::string &filename, ctype &time)
reads ALBERTA mesh file
Definition: albertagrid.cc:629
static Grid * restore(std::istream &stream)
Definition: albertagrid/backuprestore.hh:55
[ provides Dune::Grid ]
Definition: agrid.hh:137
static Grid * restore(const std::string &filename)
Definition: albertagrid/backuprestore.hh:43
bool writeGridXdr(const std::string &filename, ctype time) const
Definition: albertagrid.cc:619
AlbertaGrid< dim, dimworld > Grid
Definition: albertagrid/backuprestore.hh:25
Include standard header files.
Definition: agrid.hh:59
facility for writing and reading grids
Definition: common/backuprestore.hh:40
static void backup(const Grid &grid, const std::string &filename)
Definition: albertagrid/backuprestore.hh:28
static void backup(const Grid &grid, std::ostream &stream)
Definition: albertagrid/backuprestore.hh:37